diff options
| author | Tom Smeding <tom.smeding@gmail.com> | 2016-07-30 17:01:32 +0200 |
|---|---|---|
| committer | Tom Smeding <tom.smeding@gmail.com> | 2016-07-30 17:01:32 +0200 |
| commit | 94fd6ce2902ebb8b933763bda8c3280914d6ae20 (patch) | |
| tree | f04886e1432522efebdd89cb484a8fdf6b7d4ea0 | |
Initial
| -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 += -= *= /= %= **= &= ^= |=) |
