0

Can anyone please tell me how to prove this grammar are Ambiguous ? thanks in advance.

I cannot find the string which shows the grammar are Ambiguous :(

G2 = { {S}, {a,b}, {S->ab|ba|SS}, S }

  • Sounds like homework. What have you tried so far? – Arya McCarthy May 12 '17 at 20:51
  • 1
    Possible duplicate of [Parse Tree Of Context Free Grammar](http://stackoverflow.com/questions/19281360/parse-tree-of-context-free-grammar) – rici May 12 '17 at 22:57
  • 1
    Another dupe: http://stackoverflow.com/questions/43403182/how-to-prove-a-grammar-is-ambiguous-s-sss Both of these make the essential point about the production `S→SS` – rici May 12 '17 at 23:00

0 Answers0