lexeme
Registers a lexeme definition with this Grammar Builder.
Lexemes are matched in the order they are registered. The registered lexeme is returned to allow capturing it for later reference in rule definitions.
Return
Parameters
T
The token type produced by this Lexeme
lexeme
The Lexeme to register
Registers a lexeme definition with this Grammar Builder and assigns a factoryOverride for it.
Lexemes are matched in the order they are registered. The registered lexeme is returned to allow capturing it for later reference in rule definitions.
Return
Parameters
T
The token type produced by this Lexeme
lexeme
The Lexeme to register
factory Override
A factory override definition assigned to the lexeme