Content deleted Content added
Disambiguated: operator → operator (programming) |
Moved esoteric critique of the intro to an esoteric critique session "generalisations of CON". Probably too close to original research too, that bit. |
||
Line 2:
{{Unreferenced|date=August 2009}}
{{Cleanup-reorganize|date=July 2007}}
In [[programming languages]], '''common operator notation''' is
In this model, tokens are divided into two classes: operators and operands.
Line 53:
:<tt>-3! = -(3!)</tt>
==generalisations of common operator notation==
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].
==See also==
|