1,117 views
0 votes
0 votes
For the below given grammar:
S→-S
S→S-a
S→a
The number of inadequate states (states which have conflicts) and number of shift reduce conflicts are _____ and _____ respectively.

2 Answers

0 votes
0 votes
whatever parsing you take the answer is 1  1

Related questions

1 votes
1 votes
0 answers
1
sanyam53 asked Feb 3, 2017
651 views
The number of states in SLR parser for G is _______.for this type of question , Do we consider augmented entry state like S'->S. ????
2 votes
2 votes
0 answers
2
rahul sharma 5 asked Oct 14, 2017
1,540 views
Consider the following grammer:-Stmts - Stmt | Stmts;StmtStmt - Var =EVar ->id[E] | idE- id | (E)Find the number of conflicts in LR(0)?
0 votes
0 votes
0 answers
3
rahul sharma 5 asked Oct 14, 2017
1,339 views
Consider the following augmented grammar G which is used to build LR (0) parsing table.E' __ EE __ E+T/TT __ T*F/FF >(E)/idHow many rows are there in the parsing rable ?...