#![allow(clippy::allow_attributes_without_reason)] #![allow(dead_code, clippy::unwrap_used, clippy::unwrap_in_result)] use fix::Evaluator; use fix_error::{Result, Source}; use fix_lang::Value; pub fn eval(expr: &str) -> Value { Evaluator::new() .eval(Source::new_eval(expr.into()).unwrap()) .unwrap() } pub fn eval_result(expr: &str) -> Result { Evaluator::new().eval(Source::new_eval(expr.into()).unwrap()) }