From 94fd6ce2902ebb8b933763bda8c3280914d6ae20 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 30 Jul 2016 17:01:32 +0200 Subject: Initial --- LANGUAGE.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 LANGUAGE.txt 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 += -= *= /= %= **= &= ^= |=) -- cgit v1.2.3-70-g09d2