User:Sunjammer/Operator (draft)
From Dragon Age Toolset Wiki
An operator is symbol that performs a prescribed operation on one or more operands.
The dascript compiler recognizes the following operators:
Remarks
Operators may be categorised based on the number of operands:
- Unary - one operand
- Binary - two operands
- Ternary - three operands
Operator precedence:
- TODO
Operator associativity:
- Left-associative operators are evaluated in order from left to right. Except for the assignment operators all binary operators are left-associative. For example, a + b - c is evaluated as (a + b) - c.
- Right-associative operators are evaluated in order from right to left. The assignment operators, and the conditional operator are right-associative. For example, x = y = z is evaluated as x = (y = z).