GATE 2022 CS – Question 13
Which one of the following statements is TRUE?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) $LR(1)$ parsing is sufficient for deterministic context-free languages.
Explanation
Every DCFL has an LR(1) grammar. Merging LR(1) states into LALR(1) can introduce reduce-reduce conflicts, so A is false. The symbol table is used in many phases, and data flow analysis is a compile-time optimization.