diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-09 17:58:59 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-09 17:58:59 +0100 |
| commit | 8283faff92557387ab057bbc6f4f0c33e96dbcbf (patch) | |
| tree | f82cba88bdfec85c057c77d13b1586e140362ace /src/compiler.rs | |
| parent | aeab306921dfe9af4b444a77bd46d1700e43dd88 (diff) | |
| download | sylt-8283faff92557387ab057bbc6f4f0c33e96dbcbf.tar.gz | |
Not -> Bang
Diffstat (limited to 'src/compiler.rs')
| -rw-r--r-- | src/compiler.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 58e5f23..34af10b 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -389,7 +389,7 @@ impl Compiler { Token::Bool(_) => self.value(block), Token::String(_) => self.value(block), - Token::Not => self.unary(block), + Token::Bang => self.unary(block), _ => { return false; }, } @@ -607,9 +607,7 @@ impl Compiler { } }, - Token::Not => { - // I suspect this will be wierd with the boolean NOT - // operator... + Token::Bang => { self.eat(); loop { match self.peek() { |
