Given a Context-Free Grammar 𝐺 as follows: 𝑆 β†’ π΄π‘Ž | 𝑏𝐴𝑐 | 𝑑𝑐 | π‘π‘‘π‘Žβ€¦

GATE Β· 2025 Β· CS Β· Set 2 Β· Computer Science & IT

Given a Context-Free Grammar 𝐺 as follows:

𝑆 β†’ π΄π‘Ž | 𝑏𝐴𝑐 | 𝑑𝑐 | π‘π‘‘π‘Ž

𝐴 β†’ 𝑑

Which ONE of the following statements is TRUE?

  1. A.

    𝐺 is neither LALR(1) nor SLR(1)

  2. B.

    𝐺 is CLR(1), not LALR(1)

  3. C.

    𝐺 is LALR(1), not SLR(1)

  4. D.

    𝐺 is LALR(1), also SLR(1)

Attempted by 115 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…