+1 vote
217 views
consider the grammer

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

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

edited | 217 views
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)
by (349 points)
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.
by Active (4.8k points)
edited
Only 1

E->(E)

->(a)
by Active (2.3k points)