Example 6

Ambiguous Grammar for Expressions

Consider the following version of the Expression grammar:

and input a + a + a. We can find the following left-most derivations:

Send questions and comments to: Karen Lemone