diff --git a/src/interpreter/interpretable.rs b/src/interpreter/interpretable.rs index 171f9cf..61cae64 100644 --- a/src/interpreter/interpretable.rs +++ b/src/interpreter/interpretable.rs @@ -205,7 +205,7 @@ impl ast::ExprNode { _ => Err(InterpreterError::new(operator, "type error")), }, - TokenType::Equal => Ok(Value::Boolean(left_value == right_value)), + TokenType::EqualEqual => Ok(Value::Boolean(left_value == right_value)), TokenType::BangEqual => Ok(Value::Boolean(left_value != right_value)), _ => panic!(