retagged by
656 views
1 votes
1 votes

How to solve this ? Please help.

retagged by

1 Answer

2 votes
2 votes

For approaching such questions one must be clear about how LR(1) parsers actually work.

I am inserting image of stack content after reading each input symbol left to right one by one.

Hope it helps

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
0 answers
2
2 votes
2 votes
0 answers
3
admin asked Aug 20, 2019
370 views
Show that the following grammar:$S\rightarrow AaAb\mid BbBa$$A\rightarrow \epsilon$$A\rightarrow\epsilon$is LL(1) but not SLR(1).
0 votes
0 votes
1 answer
4
ManojK asked Jun 1, 2016
358 views
There may exist a grammar that is non LL(1) but generating an LL(1) language.Explain whether the above statement is true or false .