1.

The grammar A → AA | (A) | e is not suitable for predictive-parsing because the grammar is?(a) Ambiguous(b) Left recursive(c) Right recursive(d) An operator grammarThis question was posed to me during an interview.The origin of the question is Top-Down Parsing topic in division Topdown Parsing of Compiler

Answer»

Correct CHOICE is (B) Left recursive

For explanation I WOULD say: A ::= A a

| bis the left recursive language.



Discussion

No Comment Found

Related InterviewSolutions