0 votes 0 votes Compiler Design compiler-design parsing lr-parser made-easy-test-series + – Akanksha Kesarwani asked Dec 19, 2015 • retagged Jul 15, 2022 by Anjana5051 Akanksha Kesarwani 695 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Akanksha Kesarwani commented Dec 19, 2015 reply Follow Share I am also getting these states but cannot we merge I4 , I7 states for LALR , if we do so there will be shift reduce conflict then how LALR ?? 0 votes 0 votes Umang Raman commented Dec 19, 2015 reply Follow Share you can merge only if all production are same they only differ in lookahead symbol. 0 votes 0 votes Akanksha Kesarwani commented Dec 19, 2015 reply Follow Share Thanks 1 votes 1 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes I4 contains 2 productions and I7 contains only one production,so we cannot merge these two state. when we merge is same productions but differ in lookahead symbols so the grammmar is CLR(1) and LALR(1) Santhosh Devulapally answered Dec 20, 2015 • selected Jan 3, 2017 by Akanksha Kesarwani Santhosh Devulapally comment Share Follow See all 0 reply Please log in or register to add a comment.