- GATE CS
- 2026–27 pattern practice
- Compiler Design
- LL(1) parsing
- Easy
Which property prevents a grammar from being LL(1)?
Parsing
Pick an option to check your answer.
Answer: C. Solution
A left-recursive rule such as makes overlap , so a one-token lookahead cannot choose, and a top-down parser would recurse forever. Left recursion must be eliminated before building an LL(1) table.
Why not the others
- Having ε-productions is allowed if FIRST/FOLLOW sets do not conflict.
- Having more than one non-terminal is irrelevant.
- Right recursion is fine for top-down parsing.