Optional
both: a + b + c +(a, b, c)
both
left: a / b / c -> /(/(a, b), c)
left
right: a = b = c -> =(a, =(b, c))
right
non: a < b < c -> syntax error
non
a both-associative operator has an unlimited number of arguments
a left, right or non associative operator has at most two arguments
Infix position, with an operand before and an operand after: a ⊛ b.
a ⊛ b
Example: +, \times.
+
\times
both
: a + b + c +(a, b, c)left
: a / b / c -> /(/(a, b), c)right
: a = b = c -> =(a, =(b, c))non
: a < b < c -> syntax errora
both
-associative operator has an unlimited number of argumentsa
left
,right
ornon
associative operator has at most two arguments