1 votes 1 votes When we merge states in an $LR(1)$ parser to form an $LALR(1)$ parser, we may introduce Shift-reduce conflict. Reduce-reduce conflict. Neither shift-reduce nor reduce-reduce conflict.Both shift-reduce as well as reduce-reduce conflict. Compiler Design go2025-mockgate-5 compiler-design lr-parser 1-mark + – gatecse asked Feb 8, 2021 • recategorized Feb 8, 2021 by soujanyareddy13 gatecse 165 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes Merging of the states in an $LR(1)$ parser can lead to more Reduce-Reduce conflicts in the corresponding $LALR(1)$ parser whereas the Shift-Reduce conflicts won't be changing. Reference: https://gatecse.in/lr-parsing-part-4-slr-clr-lalr-and-summary gatecse answered Feb 8, 2021 • selected Jan 15, 2022 by Arjun gatecse comment Share Follow See all 0 reply Please log in or register to add a comment.