Re: Ambuguity of CFG



beelzebub wrote:
S -> a S a and S -> a


The above is not an ambiguous grammar.
The following is an ambiguous grammar.

S -> S + S | S - S | a

Indeed, I said it is nondeterministic.

Jan Jongejan.
.