retagged by
2,286 views

2 Answers

Best answer
1 votes
1 votes

LR 1 for given grammer is 

its shows there are no RR conflicts and SR conflicts.

 

selected by
0 votes
0 votes
Canonical LR(1) items

S' --> .S,$

S --> .E],$

   --> .E),$

E --> .,] / )

Shift reduce conflict exist when there is terminal(Action part), not (GOTO part) and there is reduction production

This Grammar is CLR(1), there is no Shift -Reduce Conflict exist.
edited by

Related questions

0 votes
0 votes
1 answer
2
sripo asked Nov 1, 2018
532 views
For given production for a LR(1) grammarB->b.C ,$|c here C is non terminalC->c. ,$|c and here c is terminal. $|c are lookup symbolsWill there be a shift reduce conflict...
0 votes
0 votes
1 answer
3
worst_engineer asked Jan 9, 2016
1,365 views
Will not there be 3 SR conflicts in CLR(1) reduction ?In fact their ans also says this :In the state I1 , will it not be SR conflict ?
2 votes
2 votes
1 answer
4
sripo asked Nov 10, 2018
3,181 views
Can you give an example which is not LL(1) but is CLR(1)