Engineering & Science
GATE Computer Science
Mad4Study — GATE Computer Science Solved Questions & Revision Notes
https://mad4study.com
- GATE CS
- 2026–27 pattern practice
- Compiler Design
- LR parsing
- Medium
Which ordering of the classes of grammars parsable by these LR parsers is correct?
Parsing
Pick an option to check your answer.
Answer: A. Solution
Each step uses more lookahead information. LR(0) uses none; SLR adds FOLLOW sets; LALR uses precise per-state lookaheads (merged); CLR keeps full LR(1) items. So LR(0)⊂SLR(1)⊂LALR(1)⊂CLR(1).
Why not the others
- SLR(1)⊂LR(0) reverses the first two.
- LALR(1)⊂SLR(1) — LALR is strictly more powerful than SLR.
- CLR(1)⊂LALR(1) — merging states can only lose power.
mad4study.com/exams/gate-cs/questions/gate-cs-2026-q046
Report an error
More practice questions in Compiler Design
GATE CS · Compiler Design · Parsing
For interactive CBT mock test, OMR practice, and full syllabus notes, visit https://mad4study.com