GATEverse Practice, past papers & mock tests
GATE 2025 · CS2 - Afternoon
Compiler DesignParsing TechniqueshardMSQ2 marks

Consider two grammars G1 and G2 with the production rules given below: G1:

GRAMMAR RULES
Sif E then S | if E then S else S | a
Eb G2:
Sif E then S | M
Mif E then M else S | c
Eb where if,then,else,a,b,c are the terminals.

Which of the following option(s) is/are CORRECT?

Select every correct option.

Save your progress

Related Compiler Design PYQs