Operators and Precedence¶
The Reflex language shares many of its operators with other Clike languages. The following table presents the different operators, and organizes them by precedence. Operators higher in the table take precedence over operators at lower rows in the table.
Level 
Operator 
Description 
Associativity 

1 
++  () [] . 
Pre Increment
Pre Decrement
Function call
Index Subscript
command selection

Lefttoright 
2 
++  +  ! ~ ( T ) 
Post Increment
Post Decrement
Unary plus
Unary minus
Logical NOT
Bitwise NOT
Type cast

Righttoleft 
3 
* / % 
Multiplication
Divide
Modulo

Lefttoright 
4 
+  
Addition
Subtraction

Lefttoright 
5 
<< >> 
Bitwise Left Shift
Bitwise Right Shift

Lefttoright 
6 
< <= > >= 
Less than
Less than or equal
Greater than
Greater than or equal

Lefttoright 
7 
== != 
Equal to
NOT Equal to

Lefttoright 
8 
& 
Bitwise AND 
Lefttoright 
9 
^ 
Bitwise XOR 
Lefttoright 
10 
 
Bitwise OR 
Lefttoright 
11 
&& 
Logical AND 
Lefttoright 
12 
 
Logical OR 
Lefttoright 
13 
?: 
Ternary Operator 
Righttoleft 
14 
= += = *= /= %= <<= >>= 
Assignment
Assignment by sum
Assignment by difference
Assignment by product
Assignment by quotient
Assignment by modulo
Assignment by left shift
Assignment by right shift

Righttoleft 