[][src]Function evalexpr::eval

pub fn eval(string: &str) -> EvalexprResult<Value>

Evaluate the given expression string.

Examples

use evalexpr::*;

assert_eq!(eval("1 + 2 + 3"), Ok(Value::from(6)));

See the crate doc for more examples and explanations of the expression format.