The string to be parsed
Consumes the current line
Checks if the parser has reached the end of the string
True if the parser has reached the end of the string, false otherwise
Consumes the current token if it matches the expected token
The expected token
True if the current token matches the expected token and was consumed, false otherwise
Checks the next token in the string without consuming it
The next token in the string
Reads and consumes the rest of the current line
The rest of the current line as an array of strings
Reads and consumes the next token in the string as a number
The next token in the string as a number
Reads and consumes the next token in the string
The next token in the string
Constructs a StringParser object from the given data string