1

Does such a thing exist? If so, could you please provide an example? Thanks.

Bob Dole
  • 13
  • 3
  • Not computer related, but my personal favorite ambiguous grammar: "My father didn't fight in Vietnam so that you could have long hair and act like a hippie." Q: Did my father fight in Vietnam? A: No, I clearly stated that he did not. In fact (not really, but for the purpose of this exercise) he dodged the draft, joined the hippie movement, and actively protested so that future generations would be free to have long hair and act like a hippie. – David Apr 01 '11 at 14:03
  • @David lol thats funny, like the glass half full/empty type of thing. – Matt Oct 20 '11 at 06:05

1 Answers1

5
A -> a
B -> a

can parse the string a as both A or B, and is therefore ambiguous.

Fred Foo
  • 355,277
  • 75
  • 744
  • 836