diff options
Diffstat (limited to 'src/interpret/walker.rs')
| -rw-r--r-- | src/interpret/walker.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interpret/walker.rs b/src/interpret/walker.rs index e04b5a4..7684747 100644 --- a/src/interpret/walker.rs +++ b/src/interpret/walker.rs @@ -87,9 +87,8 @@ impl Walker { let value = self.walk_expression(right)?; let new_value = match op { - UnOp::Plus => value, - UnOp::Minus => todo!(), - UnOp::Not => todo!("Implement boolean arithmetic."), + UnOp::Minus => value.neg()?, + UnOp::Not => value.not()?, }; Ok(new_value) |
