Syntax Analysis17

0. The grammar A → AA | (A) | ε is not suitable for predictive-parsing because the grammar is
A. ambiguous
B. Left-recursive
C. right-recursive
D. an operator-grammar

  • Option : A
  • Explanation :
    Grammar have multiple parse trees for string ‘ε’, so grammar is ambiguous, and also A → AA has left recursion.
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 *