Which of the following grammar is LR (1) ?
A. A®aAb, A®bAb, A®a , A®b
B. A®aAa, A®aAb, A®c
C. A®A+A, A®a
D. Both (A) and (B)
Answer:D
Which of the following grammar is LR (1) ?
A. A®aAb, A®bAb, A®a , A®b B. A®aAa, A®aAb, A®c C. A®A+A, A®a D. Both (A) and (B)