The precedence of the operators affect the evaluation of operands in expressions. Operands associated with higher-precedence operators are evaluated before the lower-precedence operators.
The table below shows the precedence of the operators. Where operators have the same precedence, they are evaluated from left to right.
Operator
|
Description
|
( )
|
Parenthetical grouping
|
& *
|
Unary pointer operators
|
~ ! - +
|
Unary operators
|
**
|
Exponentiation
|
* / mod
|
Multiplication, Division & Modulo
|
+ -
|
Addition & Subtraction
|
<< >>
|
Shift operators
|
:
|
Concatenation
|
< <= == >= > != <>
|
Relational operators
|
& ^ |
|
Bit manipulation operators
|
&& ||
|
Logical operators
|
= <<= >>= &= |= ^= *= /= += -= := mod=
|
Assignment operator and Binary compound assignment operators
|
|
§ Operators
§ WIL Language Elements
§ Reference
§ Step by step guide to learning WIL
§ Notes
|