GATEverse Practice, past papers & mock tests
GATE 2020
Compiler DesignParsing TechniquesmediumMCQ2 marks
Consider the productions A -> PQ and A -> XY. Each of the five non-terminals A, P, Q, X, and Y has two attributes: s (synthesized) and i (inherited). Consider the following rules: Rule 1: P.i = A.i + 2, Q.i = P.i + A.i, and A.s = P.s + Q.s Rule 2: X.i = A.i + Y.s and Y.i = X.s + A.i Which one of the following is TRUE?
Save your progress

Related Compiler Design PYQs