This object implements an LALR(1) parser and compiler.
Normal use of this object would be:
{add_rule, set_priority, set_associativity}* set_symbol_to_string compile {parse}*
mapping(int|string:array(rule)) grammar
The grammar itself.
kernel start_state
The initial LR0 state.
int verbose
Verbosity level
None
Some
int error
Error code
mapping(string:kernel) known_states
LR0 states that are already known to the compiler.
state_queue s_q
Contains all states used. In the queue-part are the states that remain to be compiled.