gophergfx
    Preparing search index...

    Class StringParser

    Index
    • Checks if the parser has reached the end of the string

      Returns boolean

      True if the parser has reached the end of the string, false otherwise

    • Consumes the current token if it matches the expected token

      Parameters

      • token: string

        The expected token

      Returns boolean

      True if the current token matches the expected token and was consumed, false otherwise

    • Checks the next token in the string without consuming it

      Returns string

      The next token in the string

    • Reads and consumes the rest of the current line

      Returns string[]

      The rest of the current line as an array of strings

    • Reads and consumes the next token in the string as a number

      Returns number

      The next token in the string as a number

    • Reads and consumes the next token in the string

      Returns string

      The next token in the string