1 1 vote Which state is having SR/RR conflict?Consider the following Grammar : $S \rightarrow A B A$ $A \rightarrow B c|d A| \in \mid e$ $B \rightarrow$ ed $\mid e$ During construction of SLR (1) parser for the above grammar we came across many intermediate states. Then which of the following is correct ? There is only one shiff-reduce conflict is an intermediate state. There is only one reduce-reduce conflict in intermediate state. $V$ There is both shift-reduce and reduce-reduce conflict in an intermediate state. There is no such intermediate state. Compiler Design compiler-design parsing lr-parser test-series + – KISHALAY DAS 1.4k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote See the pic srestha answered Nov 6, 2016 srestha comment Share Follow See 1 comment 1 1 comment reply KISHALAY DAS commented Nov 7, 2016 reply Follow flag So on State 1 only we have a shift reduce conflict on symbol e(follow of A) due to A->.epsilon(Reduce) and B->.e(shift)...right? 0 0 replyShare Please log in or register to add a comment.
0 0 votes in I4.. states having A-> e. B-> e. A-> e.d in this state as there is intersection in follow of A and B.. so there will be reduce conflict.... and also A-> e.d shidt entry will also be in d column so shift-reduce conflict will be in d column... kirti singh answered Nov 6, 2016 • edited Nov 6, 2016 by kirti singh kirti singh comment Share Follow See all 2 Comments 2 2 Comments reply kirti singh commented Nov 6, 2016 reply Follow flag $ is common In follow of A & B.. 0 0 replyShare KISHALAY DAS commented Nov 7, 2016 reply Follow flag In I0 also there is conflict---- On State 1 only we have a shift reduce conflict on symbol e(follow of A) due to A->.epsilon(Reduce) and B->.e(shift)...right? 0 0 replyShare Please log in or register to add a comment.