Overview
LR Parsing reads tokens left to right and reduces recognized symbol sequences into grammar rules.
Parses input bottom-up with shift and reduce actions.
Compact metadata for implementation and discovery.
LR Parsing reads tokens left to right and reduces recognized symbol sequences into grammar rules.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(n)
Show tokens shifting and grammar handles reducing on a stack.
LR Parsing operates in O(n) time and O(n) space within the Bottom-Up Parsing family. Often compared with LL Parsing and Operator Precedence Parsing.
What each reference supports for this entry.
Compiler construction reference for LR Parsing grammar transformation, parser construction, or syntax-tree workflow.
Good next jumps from the relationship graph, ranked for useful discovery.
Parsing · Core
Canonical LR Parsing is a named variant of LR Parsing with a more specific construction or operating tradeoff.
Compare with thisParsing · Core
LALR parsing merges LR item sets to reduce parse table size.
Compare with thisParsing · Core
SLR Parsing is a named variant of LR Parsing with a more specific construction or operating tradeoff.
Compare with thisParsing · Specialized
GLR parsing extends LR parsing to handle nondeterminism and ambiguous grammars.
Compare with thisLR parsing handles bottom-up shift-reduce parsing, unlike top-down LL parsing.