0 votes 0 votes Show that the following grammar $S\rightarrow Aa\mid bAc\mid Bc\mid bBa$ $A\rightarrow d$ $B\rightarrow d$ is LR(1) but not LALR(1). Compiler Design ullman compiler-design grammar parsing descriptive + – admin asked Aug 20, 2019 • edited Aug 20, 2019 by Lakshman Bhaiya admin 762 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes From the state diagram we can say that the given grammar is LR(1) but not LALR(1). Moreover if the grammar is LR(1) it may not be LALR(1) always. Anwesha_Mishra answered Aug 22, 2019 Anwesha_Mishra comment Share Follow See all 0 reply Please log in or register to add a comment.