Expand description
§exprs
A 0 dependency math expression parser and evaluator in Rust. It aims to be simple to use and is more of an exercise than anything.
§Evaluating Expressions
use exprs::*;
fn main() {
let expr = Expr::new("1 + 2");
assert_eq!(expr.eval(), 3.0);
}
§Installation
Simply add the current version to your Cargo.toml
dependency list
[dependencies]
exprs = "0.1.1"
in your crate root add
extern crate exprs;