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:B
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