Lexer Context
A lexing context, created by a Lexer.parse call, which exposes an interface for advanced lexing.
Author
AdrianTodt
Parameters
T
The type of tokens the lexer generates.
Functions
next String
Link copied to clipboard
Returns a predefined length of characters of the reader, as a String.
peek String
Link copied to clipboard
Peeks a string with a predefined length of the reader.
process
Link copied to clipboard
Calls the Lexer.parse's token consumer.
Properties
Extensions
read Identifier
Link copied to clipboard
Reads a C-like identifier.
read Number
Link copied to clipboard
Reads a number.
read String
Link copied to clipboard
Reads a String up until a delimiter.