Tiny recursive descent expression parser, compiler, and evaluation engine for math expressions.
This is a WIP port of TinyExpr to Rust. Current release only supports built-in system functions (trigonometry, algebraic operations, constants, etc.). See the tests
module for more examples.
```toml
[dependencies] tinyexpr = "0.1" ```
```rust extern crate tinyexpr;
fn main() { // parse the expression and fetch result let r = tinyexpr::interp("2+2*2").unwrap();
// should print "6"
println!("{:?}", r);
} ```
cargo build
cargo run --example example
Licensed under either of