Präzedenzen

(3 + 2)*4$\displaystyle \;\stackrel{{?}}{{=}}\;$3 + 2*4$\displaystyle \;\stackrel{{?}}{{=}}\;$3 + (2*4)

Grammatik-Regel

summand -> zahl
erweitern zu
summand -> zahl | produkt
produkt -> ...
(Assoziativität beachten)



Johannes Waldmann 2012-10-10