Consider the following two sets of LR (1) items of an LR (1) grammar X $\rightarrow$ c. X c / d X $\rightarrow$ c.X, $ X $\rightarrow$ .Cx, c / d X $\rightarrow$.Cx, $ X $\rightarrow$ .d, c / d X $\rightarrow$.d, $ Which of the following statements related to merging of the two sets in the corresponding LALR parser is/are FALSE?
- Cannot be merged since look aheads are different
- Can be merged but will result in S–R conflict
- Can be merged but will result in R–R conflict
- Cannot be merged since goto on c will lead to two different sets
Reveal answer
Fill a bubble to check yourself
