GATEverse Practice, past papers & mock tests
GATE 2022
Compiler DesignParsing TechniquesmediumNAT1 mark

Consider the augmented grammar with {+, *, (, ), id} as the set of terminals.

GRAMMAR RULES
S'S
SS + R | R
RR * P | P
P(S) | id If I0 is the set of two LR(0) items {[
S'S.], [
SS. + R]}, then goto(closure(I0), +) contains exactly __________ items.
Save your progress

Related Compiler Design PYQs