Constructor method.
Returns the (extended) grammar that underlies the ordered LR tables.
Returns the number of states in the parser.
Returns the end-of-file Terminal symbol that has been added to the original grammar to generate the parser.
Returns a List of the Shift, Halt, and Reduce entries for the given state's "parser action table" row. Entries are guaranteed to be sorted by the List entries' lookahead.index(). <p> Implementation must be such that this method can safely be called multiple times for a fixed <code>state</code> without performance becoming an issue.
Returns a List of the Goto entries for the given state's "goto table" row. Entries are guaranteed to be sorted by the List entries's lhs.index(). <p> Implementation must be such that this method can safely be called multiple times for a fixed <code>state</code> without performance becoming an issue.
An implementation suitable for use by an LR1 parser.
@author SöKa