Show that the following grammar is ambiguous. (To show that a grammar is ambiguous, you must demonstrate that it can generate two parse trees for the same string.) `
`person::= woman|man
woman::= willma|betty|empty
man::=fred|barney|empty
below is what I did.
person
|
woman
|
willma
|
woman
|
betty
|
woman
|
empty
----------
person
|
man
|
fred
|
man
|
barney
|
man
|
empty