Definition
Ambiguous Context-Free Grammar
A context-free grammar is called ambiguous if it is not unambiguous.
Examples
If-then-else grammar
Consider the context-free grammar
where contains the following production rules:
The grammar is ambiguous, because the word
has two different leftmost derivations.