GATEverse Practice, past papers & mock tests
GATE 2013 · session-1
Compiler DesignParsing TechniquesmediumMCQ2 marks
Consider these two sets of LR(1) items of an LR(1) grammar:
Set 1Set 2
X → c·X, c/dX → c·X, $
X → ·cX, c/dX → ·cX, $
X → ·d, c/dX → ·d, $
Which statements related to merging the two sets in the corresponding LALR parser are FALSE? 1. Cannot be merged since look aheads are different. 2. Can be merged but will result in S-R conflict. 3. Can be merged but will result in R-R conflict. 4. Cannot be merged since goto on c will lead to two different sets.
Save your progress

Related Compiler Design PYQs