The list of LRItem in the closure.
The name of the closure.
CFG to produce closures from.
The kernel of the closure.
A flag to check if the closure is processed (i.e. GOTO has been generated for the closure)
Used while generating GotoMap in ParsingTable
The number of LRClosure instantiated. Used for naming the closures.
NOTE: Set this to 0
to start name for 0. Else the naming starts continues.
Get the name of the closure
Gets the string form of the closure.
A string with closure's name and each item separated with newline(\n
)
Gets the HTML form of the closure.
A ul
with the items of closure(formated as string) as list items.
Generates the closure for the kernel.
Gets all the reducing states(i.e. dot(.
) at the end).
List of LRItem
Checks if the closure has the same kernel as the one provide.
True if same kernel.
A helper that returns the name of the closure.
Generated using TypeDoc
Represents the closure given a set of LRItem and CFG.
LRClosure