Interpreter - Fixed == operator. Oops.
This commit is contained in:
parent
5db3caab61
commit
79c594afa9
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ impl ast::ExprNode {
|
||||||
_ => Err(InterpreterError::new(operator, "type error")),
|
_ => 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)),
|
TokenType::BangEqual => Ok(Value::Boolean(left_value != right_value)),
|
||||||
|
|
||||||
_ => panic!(
|
_ => panic!(
|
||||||
|
|
Loading…
Reference in a new issue