This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
12. Operators
Operator expressions are constructed from operands and operators. The operators of an operator expression indicate which operations to apply to the operands. There are two types of operators:
- Unary operators. The unary operators take one operand and use prefix notation (for example,
–x
).
- Binary operators. The binary operators take two operands and use infix notation (for example,
x + y
). At runtime, the left hand side of the operator is always evaluated first.
The order of evaluation of operators in an expression is determined by the precedence and associativity of the operators.
- OperatorExpression ::= UnaryOperatorExpression | BinaryOperatorExpression
- BinaryOperatorExpression ::=
- ArithmeticOperatorExpression |
ShiftOperatorExpression |
RelationalOperatorExpression |
ConcatenationOperatorExpression |
BitwiseOperatorExpression |
LogicalOperatorExpression