Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Expressions

Operations (Binary and Unary)

Higher precedences are executed first.

Supported Binary Operations (and Precedence):

OperationSymbolPrecedence
Modulus%100
Multiply*90
Divide/90
Add+80
Subtract-80
Left Shift<<70
Right Shift>>70
Less or Equal<=60
Greater or Equal>=60
Less Than<50
Greater Than>50
Equal==40
Not Equal!=40
Not (Bool)!30
And (Bool)&&20
Or (Bool)||10

Supported Unary Operations:

OperationSymbol
Negative-<num>
Not!<bool>
Cast<type>’<expr>