Binary expressions are either monadic expressions, or have two operands and an infix operator; the syntax is:
binary-expression:
monadic-expression
binary-expression binary-operator binary-expression
binary-operator: one of
* / % + - << >> < > <= >= == != & ^ | :: && ||
All of these operators are left-associative except for ::
, which associates right. Their precedence is as listed here, with tightest first.
* / %
|
+ -
|
<< >>
|
< > <= >=
|
== !=
|
& ^ |
|
::
|
&& ||
|