# compiler design

1 vote
254 views
consider the grammer

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

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

edited
0
i think (a) cant be derived from given grammer??
0
I think there is a mistake in ques, this rule should be E -> (E) instead of E -> E (E)

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
1 vote
I think Only One Right Most Derivation possible for the sentence (a).

E -> (E)

E-> a

Correct me if I am wrong.

edited