Common operator notation: Difference between revisions

Content deleted Content added
Pandamonia (talk | contribs)
No edit summary
Line 54:
:<tt>-3! = -(3!)</tt>
 
==generalisationsGeneralizations of commonCommon operatorOperator notationNotation==
The use of operator precedence classes and associativities is just one way. However, it is not the most general way: this model cannot give an operator more precedence when competing with '−' than it can when competing with '+', while still giving '+' and '−' equivalent precedences and associativities. <!-- speculation... Can it be demonstrated that this is the only sensible way? I do not know, but any such demonstration would be welcome. --> A generalized version of this model (in which each operator can be given independent left and right precedences) can be found at [http://compilers.iecc.com/comparch/article/01-07-068].