Consider the following grammar: S → tA | pB A → qA | ε B → qB | ε Select the…

Consider the following grammar:

S → tA | pB
A → qA | ε
B → qB | ε

Select the correct option.

  1. A.

    The grammar is neither LL(1) nor LR(0)

  2. B.

    The grammar is LL(1) and LR(0)

  3. C.

    The grammar is LL(1), but not LALR(1)

  4. D.

    The grammar is LL(1) as well as LALR(1)

Attempted by 95 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…