Match the parser to its key property
Exercise and reference answers
- Matching pairs
- A
- LL(1)
- B
- Top-down, predicts via 1 lookahead
- A
- LR(1)
- B
- Bottom-up, 1 lookahead, most powerful linear
- A
- LALR(1)
- B
- LR(1) state-merged, used in yacc/bison
- A
- SLR
- B
- Simpler bottom-up, weaker than LALR