0 0 votes Suppose Grammars given:- S→ Bbb B→ epsilon If we do SLR(1) parsing on the above grammar. Then the first state would have shift-reduce conflict right?? Because B→ epsilon would be same as B→ . right? Please make this clear. Compiler Design compiler-design + – Shamim Ahmed 870 views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply Shaik Masthan commented Jan 13, 2019 reply Follow flag shift means you have a terminal which reach to another state But here you have Non-terminal, which leads to GOTO function but not Shift 0 0 replyShare Shamim Ahmed commented Jan 13, 2019 reply Follow flag Yes! you are right. It should be GOTO. Is B→ epsilon is same as B -> . ? Will it cause any conflict in the first state? 0 0 replyShare Shaik Masthan commented Jan 14, 2019 reply Follow flag Is B→ epsilon is same as B -> . ? yes. Will it cause any conflict in the first state? there is no shift operation, therefore it may cause reduce-reduce conflict ! But in this question, is there any productions leads to reduce-reduce conflict ? Answer :- NO 2 2 replyShare Shamim Ahmed commented Jan 14, 2019 reply Follow flag Thank you :) 0 0 replyShare Please log in or register to add a comment.