Implementation of CLR(1) parsing table.
ParsingTable
{IParsingTable}
Creates an instance of ParsingTable.
The CFG whose parsing table to construct
The CFG used in parsing table.
{CFG}
Generates the GotoMap of the CFG.
Generates the parsing table of CFG
Checks and returns the LRClosure for the kernel if already exists, creates new LRClosure if not.
The goto function of parsing table.
Example: GOTO(I0, 'A') = I1
GOTO(I0, 'A') = I1
{ReferenceError} If the symbol is not one of terminal or non terminal in the CFG.
The current state. I0
I0
The input symbol in the CFG. A
A
The destination state. I1
I1
Generated using TypeDoc
Implementation of CLR(1) parsing table.
ParsingTable
{IParsingTable}