Skip to main content

eval_arithmetic

Function eval_arithmetic 

Source
pub fn eval_arithmetic(text: &str, scope: &Scope) -> Result<i64, ArithError>
Expand description

Tokenize, parse, and evaluate text (the content of $(( ))) with no $(...) support — the fast path used where an async evaluator isn’t available. A reachable $(...) errors loudly rather than silently resolving to nothing.