Question

which of the following grammer is LR(1)

A A->aAa, 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 & Explanation

Answer: Option [B]