127 views
0 votes
0 votes
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??

Please log in or register to answer this question.

Related questions

0 votes
0 votes
2 answers
1
dhruba asked Jun 5, 2023
328 views
0 votes
0 votes
1 answer
4
Kartheek8899 asked Oct 14, 2022
537 views
S - L = RS - RL - * RL - idR - LIs given CFG LR(0) & SLR(1)?