diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-10 14:05:37 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-10 14:05:37 +0100 |
| commit | de8108932c3ac9ef1ea70ea5b0c74f369c36c442 (patch) | |
| tree | 681d7e222097a7258bfe458626c9eb99482606c4 | |
| parent | 0d892ed46f46d7b3ca9d3063b925a213be02e2a8 (diff) | |
| download | sylt-de8108932c3ac9ef1ea70ea5b0c74f369c36c442.tar.gz | |
fix negation precedence
| -rw-r--r-- | src/compiler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index f36d717..7732992 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -153,7 +153,7 @@ impl Compiler { Token::Not => Op::Not, _ => self.error("Invalid unary operator"), }; - self.value(block); + self.parse_precedence(block, Prec::Factor); block.add(op, self.line()); } |
