pysynth/wrappers/mml.py
def read_until(self, match):

        """
        Read until we match with a certain character.

        We act as a generator, continuously yielding until
        we reach our target.

        :param match: String to match with
        :type match: str
        :return: Character at our position
        :rtype: str
        """

        # Iterate until we find our position:

        while self.has_next():

            # Go to our next value:

            self.forward()

            # Get the current position:

            temp = self.get()

            # Check if it is our match:

            if temp == match:

                # It is! Return and exit!

                return

            # No dice, lets yield:

            yield temp

        Read until we match with a certain character.

        We act as a generator, continuously yielding until
        we reach our target.

        :param match: String to match with
        :type match: str
        :return: Character at our position
        :rtype: str
        
Read until we match with a certain character.
We act as a generator, continuously yielding until
we reach our target.
Read until we match with a certain character . We act as a generator continuously yielding until we reach our target .
def read_until(self, match):
        while self.has_next():
            self.forward()
            temp = self.get()
            if temp == match:
                return
            yield temp
def read_until ( self , match ) : while self . has_next ( ) : self . forward ( ) temp = self . get ( ) if temp == match : return yield temp
Read until we match with a certain character.
Read until we match with a certain character .
"""
        Read until we match with a certain character.

        We act as a generator, continuously yielding until
        we reach our target.

        :param match: String to match with
        :type match: str
        :return: Character at our position
        :rtype: str
        """ # Iterate until we find our position: # Go to our next value: # Get the current position: # Check if it is our match: # It is! Return and exit! # No dice, lets yield:
Character at our position
Character at our position
str
self
match
String to match with
String to match with