Show that the following BNF grammar is ambiguous. Then suggest how to fix it. The start symbol is S. S→ Sa | aS | a
Posted: Fri Apr 29, 2022 8:01 am
Show that the following BNF grammar is ambiguous. Then suggest how to fix it. The start symbol is S.
S→ Sa | aS | a
S→ Sa | aS | a