[Solved] Prove that the following grammar is ambiguous [closed]

[ad_1]

We’re not gonna do your homework.

Build the parse tree using leftmost and rightmost derivations. If you can find any ambiguity, it is ambigious.

S-> A|B|AB is the key part. Try using both A, B and AB.

3

[ad_2]

solved Prove that the following grammar is ambiguous [closed]