in Compiler Design
130 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??
in Compiler Design
130 views

Please log in or register to answer this question.

Related questions

0 votes
0 votes
2 answers
1
dhruba asked in Compiler Design Jun 5, 2023
328 views
dhruba asked in Compiler Design Jun 5, 2023
by dhruba
328 views