UGC NET CS 2009 Dec-Paper-2 | Parsers



Which of the following grammar is LR (1) ?

  1. A → a A b, A → b A b, A → a , A →b
  2. A → a A a, A → a A b, A → c
  3. A → A + A, A → a
  4. Both (A) and (B)




Answer : D

Explanation:
Both (A) and (B)
Do U have Better Solution ?
Contribute your Solution in Comment Section below

Leave a Reply