1,513 views

1 Answer

Best answer
4 votes
4 votes

E -> ET’ / i
T’ -> PT
P -> +
E -> RE’
R -> (
E’ -> ES
S -> ) 
T -> RE’
T -> i

Here the key point is E->T so don't take it T epsilon. Simply take E-->(E) hence we can solve this.

Total {E,T',P,R,E'S,T} 7 variables.

edited by

Related questions

0 votes
0 votes
0 answers
1
1 votes
1 votes
1 answer
3
Manu Thakur asked Oct 29, 2017
6,047 views
As the null string belongs to the language generated by the grammar, answer of the following questions should be "none of these"?
1 votes
1 votes
0 answers
4