This object implements an LALR(1) parser and compiler.
Normal use of this object would be:
set_error_handler {add_rule, set_priority, set_associativity}* set_symbol_to_string compile {parse}*
mapping(int:array(Rule)) grammar
The grammar itself.
Kernel start_state
The initial LR0 state.
int lr_error
Error code
mapping(string:Kernel) known_states
LR0 states that are already known to the compiler.
function(SeverityLevel:void) error_handler
Compile error and warning handler.
StateQueue s_q
Contains all states used. In the queue section are the states that remain to be compiled.