eval-utility

Crates.ioeval-utility
lib.rseval-utility
version0.1.5
sourcesrc
created_at2022-07-14 21:10:49.160932
updated_at2022-10-04 12:34:38.217026
descriptionWrapper function of the evaluator crate. Provides python-like built-in functions.
homepagehttps://github.com/floating-floaties/eval-utility/
repositoryhttps://github.com/floating-floaties/eval-utility/
max_upload_size
id625907
size80,992
Rusty (DustinDiazLopez)

documentation

README

Eval Utility

Wrapper function of the resolver crate. Provides python-like built-in functions.

Crate

[dependencies]
resolver = "^0.1"
eval-utility = "^0.1"

Example

See test cases in lib.rs for more examples.


use eval_utility::eval_wrapper::{expr_wrapper, EvalConfig};

fn main () {
    let expression = "float('42.42') == 42.42";
    let expr = expr_wrapper(
        resolver::Expr::new(expression),
        EvalConfig::default(),
    );

    println!("{:?}", expr.exec());
}
Commit count: 34

cargo fmt