diff options
-rw-r--r-- | LANGUAGE.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/LANGUAGE.txt b/LANGUAGE.txt new file mode 100644 index 0000000..0f55887 --- /dev/null +++ b/LANGUAGE.txt @@ -0,0 +1,18 @@ +Statements are terminated by ';'. +The usual infix expression rules apply, with the following precedence table: +(lower precedence number means tighter binding) + + Operators Precedence Associativity + ** 1 Right + - ! ~ 2 Prefix unary + * / % 3 Left + + - 4 Left + & 5 Left + ^ 6 Left + | 7 Left + < > <= >= 8 Nonassociative + == != 9 Nonassociative + && 10 Left (short-circuiting) + ^^ 11 Left + || 12 Left (short-circuiting) + = 13 Right (also += -= *= /= %= **= &= ^= |=) |