retagged by
967 views
1 votes
1 votes
A canonical set of items is given below

S→L.>R
Q→R.
On input symbol > the set has

(a).a shift-reduce conflict and a reduce-reduce conflict.
(b).a shift-reduce conflict but not a reduce-reduce conflict.
(c).a reduce-reduce conflict but not a shift-reduce conflict.
(d).neither a shift-reduce nor a reduce-reduce conflict.
retagged by

2 Answers

0 votes
0 votes
What's worth noticing here is that both productions don't belong to same set.

Why?

Because symbol before . Is different for both. So there is no conflict at all.

Related questions

2 votes
2 votes
3 answers
1
0 votes
0 votes
1 answer
4
aditi19 asked Mar 25, 2019
1,104 views
Can lookahead symbol be epsilon in LR(1) parsing?andpls give the LR(1) diagram for the following grammar?A->AB | aB->*AC | Cb | ∈C->+ABc | ∈