The BNF is defined as follows:
-> aa | b
This is my review question for a quiz, and according to my teacher, this grammar is ambiguous. However, I realized this grammar is not.
For example, given a sentence:
babababab
There are three ways to generate this sentence depending on which
we use, but its parse-tree is unique.
Am I right in this case? Any feedback would be greatly appreciated.
Thanks,
Chan