Question

Show that the following grammar are ambiguous by finding a word that will produce two different parse trees S→SS, S→aa, S→ab S→SS, S→aa, S→ab Show the parse trees in your answer.

{S→SS, S→aa, S→ab}

{S→SS, S→aa, S→ab}