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 }
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 }