tinyexpr 0.1.1

Tiny recursive descent expression parser, compiler, and evaluation engine for math expressions. A work in progress port of TinyExpr library to Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate tinyexpr;

fn main()
{
    // evaluate expression and fetch result
    let result = tinyexpr::interp("2*1/sin(pi/2)").unwrap_or_else(|e| {
        panic!("{}", e);
    });

    println!("{:?}", result);
}