retagged by
1,028 views
0 votes
0 votes
Consider the following augmented grammar G which is used to build LR (0) parsing table.

E' __> E

E __> E+T/T

T __> T*F/F

F -->(E)/id

The number of shift reduce conflict in the LR(0) parsing table construction are __________.

Please somebody help. I am not getting more then two but Made easy's answer is 3.
retagged by

3 Answers

2 votes
2 votes
I am also getting 2 S/R conflict in these states -

E -> T.

T -> T. * F

and

E -> E + T.

T -> T. * F
1 votes
1 votes

There should be "2 SR CONFLICT" :-

1 votes
1 votes

I'm also getting 2 conflicts 

Related questions

469
views
2 answers
0 votes
885
views
3 answers
0 votes
ADITYA CHAURASIYA 5 asked Nov 18, 2017
885 views
Q9-Consider the following grammar:S → aPbSQ | aQ → t | εP → rThe number of states will reduce when a LALR(1) parse is computed out of CLR(1) ... _____.made easy solutionmy solutionplease correct me if i wrong no of state is reduce =6?
543
views
1 answers
0 votes
User007 asked Oct 6, 2016
543 views
Consider the following grammar:S --> aPbSQ/aQ --> tS/ εP --> r Is the above grammar SLR(1) ?
969
views
1 answers
0 votes
Souvik33 asked Jan 1, 2023
969 views
Let G be any grammar with the following productions:X → X+Y | YY→ Y*Z | ZZ → (X)Z → idIf LR(1) parser is used to parse the above grammar, then total how many look-a-heads are present for the item “X→.Y” and “Z →.id” in the initial state?