Write unambiguously grammar.?



Can someone help. thanks
question:
<exp> ::= <int>|<exp> <op> <exp>
<op>::= + | *
is ambiguous. Rewrite the grammar so that it accepts the same language unambiguous and honors the traditional interpretation of arithmetic expressions.
Using your grammar, provide a derivation of the expressions:
2*3+5*4 and 2+3*5*4
.



Relevant Pages

  • Re: Write unambiguously grammar.?
    ... Rewrite the grammar so that it accepts the same language unambiguous and honors the traditional interpretation of arithmetic expressions. ...
    (sci.math.num-analysis)
  • Re: Topicalization
    ... Two first class honors Carl wants among his senior sophister students ... Inversion is used in poetry ... (again, it's all about grammar, not about style...) ...
    (alt.usage.english)