diff view

This commit is contained in:
2025-04-09 19:43:23 -03:00
parent 1049f9bcf6
commit 96f5213264
3 changed files with 38 additions and 33 deletions

View File

@ -1,5 +1,6 @@
use std::num::ParseIntError;
#[allow(dead_code)]
pub enum EvalError {
LeftMissing,
RightMissing,
@ -44,4 +45,4 @@ pub fn eval(expression: Vec<&str>) -> Result<EvalResult, EvalError> {
"^" | "xor" => Ok(wrap_result(left ^ right)),
str => Err(EvalError::InvalidOperator(str.to_owned()))
}
}
}