GATE Computer Science (CS) 2022 Shift 1 Solved Paper
© examsiri.com
Question : 28 of 65
Marks:
+1,
-0
Consider the augmented grammar with {+, *, (, ), id} as the set of terminals.
S' → S
S → S + R|R
R → R*P|P
P → (S) | id
If I0 is the set of two LR(0) items {[S' → S.], [S → S. + R]}, then goto(closure(I0), +) contains exactly ______ items.
S' → S
S → S + R|R
R → R*P|P
P → (S) | id
If I0 is the set of two LR(0) items {[S' → S.], [S → S. + R]}, then goto(closure(I0), +) contains exactly ______ items.
- Your Answer:
Go to Question: