diff --git a/README.md b/README.md index 0ebdf39..458bbec 100644 --- a/README.md +++ b/README.md @@ -61,21 +61,21 @@ All `matrix` operators in order of high to low precedence from top down | Name | Operator | Associativity | Examples | |--------------------------------|----------------------------------------------------------------------------------------|---------------|--------------------| -| Field access | | left to right | `a.b` | -| Function calls | | left to right | `a()`, `a(1, 2)` | -| `Negate`, `Not` | `-`, `!` | none (unary) | `-3`, `!a` | -| `Power` | `**` | right to left | `3**4` | -| `Multiply`, `Divide`, `Modulo` | `*`, `/`, `%` | left to right | `2 * 3 / 4` | -| `Add`, `Subtract` | `+`, `-` | left to right | `1 + 2` | -| Bitwise shift | `<<`, `>>` | left to right | `13 << 2` | -| Bitwise `And` | `&` | left to right | `a & 0xC3` | -| Bitwise `Xor` | `^` | left to right | `3 ^ 4`` | -| Bitwise `Or` | `|` | left to right | `b | 0xC3` | -| Comparison | `==`, `!=`, `<`, `>`, `<=`, `>=` | left to right | `a == b`, `c != d` | -| `And` | `&&` | left to right | `res && other` | -| `Or` | `||` | left to right | `this || that` | -| `Range` | `..`, `..=` | left to right | `1..2`, `10..=20` | -| `Assign`, `OpAssign` | `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `&=`, `|=`, `^=`, `<<=`, `>>=`, `**=`, `&&=`, `||=` | right to left | `a = 3`, `i += 1` | +| Field access | | left to right | `a.b` | +| Function calls | | left to right | `a()`, `a(1, 2)` | +| `Negate`, `Not` | `-`, `!` | none (unary) | `-3`, `!a` | +| `Power` | `**` | right to left | `3**4` | +| `Multiply`, `Divide`, `Modulo` | `*`, `/`, `%` | left to right | `2 * 3 / 4` | +| `Add`, `Subtract` | `+`, `-` | left to right | `1 + 2` | +| Bitwise shift | `<<`, `>>` | left to right | `13 << 2` | +| Bitwise `And` | `&` | left to right | `a & 0xC3` | +| Bitwise `Xor` | `^` | left to right | `3 ^ 4` | +| Bitwise `Or` | `\|` | left to right | `b \| 0xC3` | +| Comparison | `==`, `!=`, `<`, `>`, `<=`, `>=` | left to right | `a == b`, `c != d` | +| `And` | `&&` | left to right | `res && other` | +| `Or` | `\|\|` | left to right | `this \|\| that` | +| `Range` | `..`, `..=` | left to right | `1..2`, `10..=20` | +| `Assign`, `OpAssign` | `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `&=`, `\|=`, `^=`, `<<=`, `>>=`, `**=`, `&&=`, `\|\|=` | right to left | `a = 3`, `i += 1` | ## Variables and Scope