Interpreter - Fixed == operator. Oops.

This commit is contained in:
Emmanuel BENOîT 2023-01-01 18:27:33 +01:00
parent 5db3caab61
commit 79c594afa9

View file

@ -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!(