Expressions

Various expression types and operators; expressions are statements that output a value.


Arithmetic


Logic


Comparison


Bitwise


Other


Precedence

Loosest to tightest. All binary operators are left associative except **.

Level Name Members
lowest logical or ||
logical xor ^^
logical and &&
equality != ==
comparison > >= < <=
bitwise or |
bitwise xor ^
bitwise and &
shift << >>
term + -
factor * / %
unary ! ~ - new copy clone
exponent ** (right associative)
pointer $ #
postfix () .
highest primary literals, identifiers, constructions, groupings

⬅️ Statements | Variables and Constants ➡️