Ambiguity in CFL Parsing

The String:

MATH

The Grammar:

MATH

____________________________________________________________

The String:

MATH

The Grammar:

MATH

MATH

__________________________________________________

HW Due Sept 29: Are Context Free Grammars sufficent to capture the usual precedence rules for $\QTR{Large}{+}$ and $\QTR{Large}{\ast }$ without ambiguity?

In particular, MATH means MATH and not MATH, which does require " $\QTR{Large}{()}$ ".

Hint: Try by introducing two new nonterminals, $\QTR{Large}{M}$ and $\QTR{Large}{A}$ ,to capture the precedence rules for multiplication and addition. Now modify the second grammar above.$\QTR{Large}{\ }$