Associativity of Arithmetic Expressions
Associativity of Arithmetic Expressions
- 2 = 3 = 4 might be interpreted as (2 = 3) = 4 or 2 = (3 = 4).
- Tokens may be defined as left, right, or noassoc in the Definitions Section.
%left ‘=‘
%left ‘+’ ‘-’
%left ‘*’ ‘/’
%noassoc UMINUS
- UMINUS is a pseudo-token standing for unary minus.