24.2k views
5 votes
What is ambiguous grammar, explain in maximum 50words.

1 Answer

3 votes

Answer:

Ambiguous grammar is defined as in programming language, if the string terminal is generated in more than one way is known as ambiguous grammar. It is also known as context free grammar. The common example of ambiguous grammar - when the string has multiple rightmost or leftmost derivation and parse trees,

User Tue Nguyen
by
8.5k points