Operator Precedence
Operators listed from highest to
lowest
(commas act as separators between operators
below)
- ( ), [ ], { }
- /, //
- ?, *(as an occurrence indicator),
+(same)
- -(unary), +(unary)
-
cast
-
castable
- treat
-
instance of
- intersect, except
- union, |
- *, div, idiv,
mod
- + , -
-
to
- eq, ne, lt,
le, qt, =, !=,
<. <=,
>, >+, is,
>>, <<
-
and
-
or
- for, some, every,
if
- , (comma)