Symbols | Description | Explanation |
---|---|---|
{ } | Braces | Specify program blocks, sets, indexing strings, slicing strings, indexing sets and slicing sets |
( ) | Parentheses | Describes function parameters Calculate contents inside parentheses first |
[ ] | Brackets | Variables: Opening bracket symbol must follow after the variable name, where further hierarchical member names and array indexes can be specified Table references: Tables do always begin and end with brackets. |
. | Point | Inside numbers: decimal point Partial table specifications: Lone point specifies current column given the table context is provided. Otherwise the lone point is treated as plain text. |
, | Comma | Separates elements in sets, values in function parameters, etc. |
; | Semicolon | Concludes and separates statements |
+ - * / | Arithmetic operators | Used as binary operators, and some as unary operators and assignment operators. |
& | ! | Logical operators | See above. |
< <= == >= > != | Comparison operators | Compares one value at the left-hand side of this symbol with exactly one value at the right-hand side |
= <> | Comparison operators | Compares one value at the left-hand side with a selection of multiple values or value ranges at the right-hand side |
= | Assignment symbol | Inside statements, equal signs are interpreted as assignment symbols. |
.. | Range | Used for slicing strings, slicing sets, and specifying value ranges |
~ | Other operators | Used as unary operators |
++ -- ** | Ad-hoc operators | Used to increment, decrement and scale variables and table entries |
: | Colon | Separates else from subsequent statement, Value repetitions in sets and accessing tables |
^ | Deep prefix/postfix symbol | Deep operators for calculating with sets, vectors and matrices Variable references Nested partial table specifications Transactions: Skip the base variables. |
/* */ // | Comments | Comment blocks and line comments. |
<== <<= <=> | Transaction operators | Used for transactions |
Various symbols can be combined, for example for the assignment operator += to add the calculated result of an expression to the destination.