Consider the following two sets of LR(1) items of an LR(1) grammar.
Which of the following statements related to merging of the two sets in the corresponding LALR parser is/are FALSE?
The TRUE statements are about merging of two states for LALR(1) parser from RR(1) parser.i.e.
Cannot be merged since goto on c will lead to two different sets.
Merging is not depend on goto ..it need only 2 states with same productions with different lookaheads
But i am not getting meaning of " goto on c "..how can goto be defined on terminal ??
@jatin khachane 1 I don't think it will matter even if you say shift on c.
yes but that statement is just trying to imply some condition like if we see terminal/nonterminal and it goes to different state then we cannot merge it which is wrong and we know only condition is same LR(0) items .
after merging their are no final item so no posiblity of any type of conflict . bcz S-R,R-R conflicts r check over final item so option 2 and 3 are totaly wrong . and option 1 also wrong bcz merging can be possible bcz its does not depend upon look ahead symbol.and option 4. so D is the option
I think the translation looks like Tag=29...
What significance does this line holds in this...
First of all, congratulations!