Method |
Description |
|
assertValidStringCharacterCode ( $code, $position ) |
|
|
positionAfterWhitespace ( $startPosition ) : integer |
Reads from body starting at startPosition until it finds a non-whitespace
or commented character, then returns the position of that character for
lexing. |
|
readComment ( $start, $line, $col, Token $prev ) : Token |
Reads a comment token from the source file. |
|
readDigits ( $start, $firstCode ) |
Returns the new position in the source after reading digits. |
|
readName ( integer $position, integer $line, integer $col, Token $prev ) : Token |
Reads an alphanumeric + underscore name from the source. |
|
readNumber ( integer $start, string $firstCode, integer $line, integer $col, Token $prev ) : Token |
Reads a number token from the source file, either a float
or an int depending on whether a decimal point appears. |
|
readString ( integer $start, integer $line, integer $col, Token $prev ) : Token |
|
|
readToken ( Token $prev ) : Token |
|
|