GATE CS 2024, set 2 · Question 65 · Compiler Design · Numerical answer (NAT) · 2 marks · no negative marks

Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is {a, b, c, d, #, @}
S' → S ; S → SS | Aa | bAc | Bc | bBa ; A → d# ; B → @
Let I₀ = CLOSURE({S' → • S}). The number of items in the set GOTO(I₀, S) is ______

Answer

Answer 9

Answer from the official GATE CS 2024 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes