Grammar G: A A + A | A A | 1 | 2 1. Prove
Fantastic news! We've Found the answer you've been seeking!
Question:
Grammar G: A → A + A | A − A | 1 | 2
1. Prove that the grammar G above is ambiguous by giving two leftmost derivations of the string 2 - 2 + 1
2. Give an unambiguous grammar for G by making a new grammar for the same language that is not ambiguous.
Related Book For
Posted Date: