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

Given the following syntax directed translation rules: Rule 1:

GRAMMAR RULES
RAB {B.i = R.i - 1; A.i = B.i; R.i = A.i + 1;} Rule 2:
PCD {P.i = C.i + D.i; D.i = C.i + 2;} Rule 3:
QEF {Q.i = E.i + F.i;}

Which ONE is the CORRECT option among the following?

Save your progress

Related Compiler Design PYQs