diff options
Diffstat (limited to 'LANGUAGE.txt')
-rw-r--r-- | LANGUAGE.txt | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/LANGUAGE.txt b/LANGUAGE.txt index 0e7066b..3259182 100644 --- a/LANGUAGE.txt +++ b/LANGUAGE.txt @@ -2,20 +2,23 @@ Statements are terminated by ';'. The usual infix expression rules apply, with the following precedence table: (higher precedence number means tighter binding) - Operators Precedence Associativity - ** 14 Right - - ! ~ 12 Prefix (unary) - * / // % 11 Left - + - 10 Left - & 9 Left - ^ 8 Left - | 7 Left - < > <= >= 6 Nonassociative - == != 5 Nonassociative - && 4 Left (short-circuiting) - ^^ 3 Left - || 2 Left (short-circuiting) - = 1 Right (also += -= *= /= %= **= &= ^= |=) + Operators Precedence Associativity + = += -= *= 1 Right + /= //= %= **= 1 Right + &= ^= |= 1 Right + || 2 Left (short-circuiting) + ^^ 3 Left + && 4 Left (short-circuiting) + == != 5 Nonassociative + < > <= >= 6 Nonassociative + | 7 Left + ^ 8 Left + & 9 Left + + - 10 Left + * / // % 11 Left + (-) ! ~ 12 Prefix (unary) + (!) 13 Suffix (unary) + ** 14 Right break and continue get parsed to calls to the __break() and __continue() |