diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiler.rs | 6 | ||||
| -rw-r--r-- | src/tokenizer.rs | 2 |
2 files changed, 3 insertions, 5 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() { diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 9574af1..cf7a14c 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -112,7 +112,7 @@ pub enum Token { #[token("||")] Or, #[token("!")] - Not, + Bang, #[token(",")] Comma, |
