Syntax Analysis4

Consider the context free grammar
E → E + E
E → (E * E)
E → id
Where E is the starting symbol, the set of terminals is {id, (, + ,), *} and the set of non terminal is {E}.

0. Which of the following terminal strings has more than one parse tree where parsed according to above grammar?

  • Option : A
  • Explanation :

    Has more than one parse tree
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *