fix readme

This commit is contained in:
Murphy 2024-02-29 18:53:10 -05:00
parent 1d0795ca96
commit e492ad9a4a
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -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