GATE | GATE 2017 MOCK II | Question 60

Consider the following grammar

S -> Aa | bAc | dc | bda
A -> d

The above grammar is:
(A) Not LALR(1) but SLR(1)
(B) Both LALR(1) and SLR(1)
(C) LALR(1) but not SLR(1)
(D) Neither LALR(1) nor SLR(1)


Answer: (C)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.