#![allow(dead_code)] use fix::Evaluator; use fix_common::Value; use fix_error::{Result, Source}; 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()) }