If you attend class on
9/6,
you will have a chance to do this
assignment in-class for the
C5 grade
Consider the following grammar for addition and multiplication:
Expr $\longrightarrow$ Expr plus Expr
Expr $\longrightarrow$ Term
Term $\longrightarrow$ Term times Term
Term $\longrightarrow$ Factor
Factor $\longrightarrow$ intlit
Add parentheses to the above grammar. The new rule(s) should maintain implicit precendence, but allow parens that can override it. Don't worry about making the grammar unambiguous. Does this change whether the grammar is left-recursive, right-recursive, or recursive?