Overview
LL(1) table construction maps a nonterminal and lookahead token to one production when the grammar is predictive.
Builds a predictive parsing table from FIRST and FOLLOW sets.
Compact metadata for implementation and discovery.
LL(1) table construction maps a nonterminal and lookahead token to one production when the grammar is predictive.
Quick facts
Runtime and memory behavior at a glance.
Best
O(grammar size)
Average
O(grammar size)
Worst
O(grammar size)
Space
O(nonterminals * terminals)
table[A, token] = production A -> alpha when token in FIRST(alpha)Selects the production for a nonterminal and lookahead token.
Show grammar items, parser states, and consumed input as parsing progresses.
LL(1) Parse Table Construction should be used with the assumptions and tradeoffs of predictive Parsing in mind.
What each reference supports for this entry.
Compiler textbook support for LL(1) Parse Table Construction's grammar analysis, parser construction, and implementation constraints.
Good next jumps from the relationship graph, ranked for useful discovery.
LL(1) parse tables are built from FIRST and FOLLOW set information.