Language reference
Operators
Verified arithmetic, element-wise, comparison, logical, assignment, and range syntax.
01
Operator groups
~= is inequality; != is not accepted. && and || short-circuit. The apostrophe transpose form is not implemented: use transpose(A).
| Group | Tokens |
|---|---|
| Arithmetic | + - * / ^ |
| Element-wise | .* ./ |
| Comparison | == ~= < <= > >= |
| Logical | ! && || |
| Assignment and range | = : |
| Syntax | . ( ) [ ] , ; % |
02
Precedence
Arithmetic binds more tightly than colon, and colon binds more tightly than comparisons. Power, exact associativity details, and all parser binding powers should be checked in source when writing parser-compatible tooling.