retagged by
774 views
0 votes
0 votes

Q9-Consider the following grammar:

S → aPbSQ | a

Q → t | ε

P → r

The number of states will reduce when a LALR(1) parse is computed out of CLR(1) parser for the above grammar _____.

made easy solution

my solution

please correct me if i wrong no of state is reduce =6?

retagged by

3 Answers

1 votes
1 votes

Stats that will merge (I2 I10), (I4 I11), (I5 I12), (I6 I13), (I7 I14), (I8I 15) is it correct?? 

0 votes
0 votes
i am getting 7 reduced state what is d answer?

Related questions

0 votes
0 votes
2 answers
1
0 votes
0 votes
1 answer
4
User007 asked Oct 6, 2016
456 views
Consider the following grammar:S aPbSQ/aQ tS/ εP r Is the above grammar SLR(1) ?