From 714397a1087887bf4773fb399b0f929434de2f34 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 29 Feb 2024 18:53:10 -0500 Subject: [PATCH] fix readme --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 0ebdf39..a983bfb 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