Overview
GLR parsing splits parse stacks when conflicts occur and later merges compatible states, producing a shared parse forest when ambiguity remains.
Parses ambiguous or nondeterministic grammars by following multiple LR parse paths.
Compact metadata for implementation and discovery.
GLR parsing splits parse stacks when conflicts occur and later merges compatible states, producing a shared parse forest when ambiguity remains.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n^3)
Worst
O(n^3)
Space
O(parse forest)
Show grammar items, parser states, and consumed input as parsing progresses.
GLR Parsing should be used with the assumptions and tradeoffs of generalized Bottom-Up Parsing in mind.
What each reference supports for this entry.
Parsing reference for generalized LR parsing, graph-structured stacks, and ambiguous context-free grammars.
Good next jumps from the relationship graph, ranked for useful discovery.
GLR parsing extends LR parsing to handle nondeterminism and ambiguous grammars.