#![allow(dead_code)] use fix::error::{Result, Source}; use fix::runtime::Runtime; use fix::value::Value; pub fn eval(expr: &str) -> Value { Runtime::new() .unwrap() .eval(Source::new_eval(expr.into()).unwrap()) .unwrap() } pub fn eval_result(expr: &str) -> Result { Runtime::new() .unwrap() .eval(Source::new_eval(expr.into()).unwrap()) }