search
Log In
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 ___________________________
in Compiler Design
edited by
254 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) 

3 Answers

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

E -> (E)

E-> a
 

Correct me if I am wrong.

edited by
0 votes
Only 1

E->(E)

  ->(a)

No related questions found

...