summaryrefslogtreecommitdiff
path: root/LANGUAGE.txt
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2016-07-30 17:01:32 +0200
committerTom Smeding <tom.smeding@gmail.com>2016-07-30 17:01:32 +0200
commit94fd6ce2902ebb8b933763bda8c3280914d6ae20 (patch)
treef04886e1432522efebdd89cb484a8fdf6b7d4ea0 /LANGUAGE.txt
Initial
Diffstat (limited to 'LANGUAGE.txt')
-rw-r--r--LANGUAGE.txt18
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 += -= *= /= %= **= &= ^= |=)