2 votes 2 votes Which one of the following is true about LALR(1) Parser ? It can resolve SR Conflict in favor of reduced It can resolve SR Conflict in favor of Shift It can resolve RR Conflict in favor of reduced It can resolve RR Conflict in favor of shift Compiler Design compiler-design parsing lr-parser + – Na462 asked Jan 19, 2019 Na462 909 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Na462 commented Jan 19, 2019 reply Follow Share Please Explain Every point :) 0 votes 0 votes Ravi kumar singh commented Jan 19, 2019 reply Follow Share In LALR(1) parser(same as Yacc) For S/R conflict it resolves in favour of shift. For R/R conflict it resloves in favour of any reduce from both. Option b) is correct. One more option possible => Depends on the situation of conflict (If this is there it is most appropriate. For more details follow link:- https://gateoverflow.in/33619/which-type-of-compiler-conflict-is-detected-and-resolving-it 0 votes 0 votes Na462 commented Jan 19, 2019 reply Follow Share For SR Conflict i got , explain for RR Conflcit , any reference for rr conflict 0 votes 0 votes Ravi kumar singh commented Jan 19, 2019 reply Follow Share I am not finding reference right now but I am 100% sure In RR conflict it can be resolved in favour of any of the reduce not for a particular reduce thatwise c) is not answer. In c) they are saying RR conflicts in favour of reduce( not mentioning that which reduce ) 0 votes 0 votes Mk Utkarsh commented Jan 19, 2019 reply Follow Share Read this one https://gateoverflow.in/1405/gate2005-83a 0 votes 0 votes Na462 commented Jan 19, 2019 reply Follow Share Refer : https://gateoverflow.in/1405/gate2005-83a In case of RR Conflict we reduce using the first production that comes textually in the grammar. Here : https://gateoverflow.in/87037/gate2005-83b Thats why when we have : E x E + E -----(RR Conflict and E+E comes first HENCE) ==> (E X (E + E)) SO answer is 9 Correct me if i am wrong :) 0 votes 0 votes Himanshu Kumar Gupta commented Jul 14, 2020 reply Follow Share @Ravi Kumar Singh i think RR conflict are resolved in the faver of First Reduce 0 votes 0 votes Please log in or register to add a comment.