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)) LR.parser.grammar
The grammar itself.
kernel LR.parser.start_state
The initial LR0 state.
int LR.parser.verbose
Verbosity level
None
Some
int LR.parser.error
Error code
mapping(string:kernel) LR.parser.known_states
LR0 states that are already known to the compiler.
state_queue LR.parser.s_q
Contains all states used. In the queue-part are the states that remain to be compiled.