doubt
Grammer
S -> Xa
X -> AbB | 2
A -> 2
B -> 2
This Grammer is not accepted by SLR(1)
but after simplification for this grammer
S -> Xa
X -> 2b2 | 2
Then it is accepted by SLR(1).
My doubt is- why this happen?
It is because simplification reduces the readability of Grammer or any other factor??