edited by
484 views
1 votes
1 votes
consider the grammer

 

E->E+E / E*E / (E) /a

THE NUMBER OF RIGHT MOST DERIVATION FOR THE SENTENCE (a) is ___________________________
edited by

3 Answers

Best answer
0 votes
0 votes
For this given grammar the answer will be only one

Bcz E->(E)->(a)

For the given grammar u can't find more than one possibility to derive (a)
selected by
1 votes
1 votes
I think Only One Right Most Derivation possible for the sentence (a).

E -> (E)

E-> a
 

Correct me if I am wrong.
edited by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
3
Ebrahim asked Jan 12
146 views
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
0 votes
0 votes
0 answers
4
Ebrahim asked Jan 11
86 views
Find the FIRST and FOLLOW of the grammar to check whether it is LL (1) parser or not. N → AB | BA A → a | CAC B → b | CBC C → a | b