M
Q. Consider the following two sets of LR(1) items of an LR(1) grammar.
X -> c.X, c/d
X -> .cX, c/d
X -> .d, c/d
X -> c.X, $
X -> .cX, $
X -> .d, $
Which of the following statements related to merging of the two sets in the
corresponding LALR parser is/are FALSE?
1. Cannot be merged since look aheads are different.
2. Can be merged but will result in S-R conflict.
3. Can be merged but will result in R-R conflict.
4. Cannot be merged since goto on c will lead to two different sets.
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Related MCQs
Q. The usual BUS structure used to connect the I/O devices is
Q. Best-first search (BFS) algorithms can search both graphs and trees.
Q. Which of the following describe(s) a global marketplace?
Q. The excess-3 code for 597 is given by
Q. The process of viewing the cross-tab (Single dimensional) with a fixed value of one attribute is
Q. The relation R defined on the set of natural numbers as {(a, b): a differs from b by 3} is given
Question analytics

Discusssion
Login to discuss.