Which of the following grammar is LR (1) ?

PYQ UGC NET 2009

Which of the following grammar is LR (1) ?

  1. A.

    A → a A b, A → b A b, A → a, A → b

  2. B.

    A → a A a, A → a A b, A → c

  3. C.

    A → A + A, A → a

  4. D.

    Both (A) and (B)

Attempted by 18 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…