A Ruleset wraps an input state and the semantic callback functions for the Lexer.
Lexer
new (state:State, functions:Array<Lexer ‑> Token>, eofFunction:Lexer ‑> Token, ?name:String)
Creates a new Ruleset.
functions:Array<Lexer ‑> Token>
The semantic functions.
name:String
Informative name for the state, if any. Generated automatically from field name by RuleBuilder if @:rule is used.
state:State
The initial state.
eofFunction:Lexer ‑> Token
The callback function for when end of file state is reached.