Consider the following augmented grammar, which is to be parsed with a SLR…
GATE · 2024 · CS · Set 2 · Computer Science & IT
Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is {𝑎,𝑏,𝑐,𝑑,#,@}
𝑆 ′ → 𝑆
𝑆 → 𝑆𝑆 | 𝐴𝑎 | 𝑏𝐴𝑐 | 𝐵𝑐 | 𝑏𝐵𝑎
𝐴 → 𝑑#
𝐵 → @
Let 𝐼0 = 𝐶𝐿𝑂𝑆𝑈𝑅𝐸({𝑆 ′ → • 𝑆}). The number of items in the set 𝐺𝑂𝑇𝑂(𝐼0, 𝑆) is ___________
Attempted by 127 students.
Sign up free to check your answer
Sign up freeLoading lesson…