expr-tools 0.1.0
Parse and evaluate arithmetic expressions with variables and functions
Install
cargo add expr-tools --registry rupm
In Ruststudio: Packages, search for expr-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# expr-tools
Parse and evaluate arithmetic expressions with variables and functions
Add it with `rupm add expr-tools` (or `cargo add expr-tools --registry rupm`).
```rust
let mut ctx = expr_tools::Context::new();
ctx.set("x", 3.0);
assert_eq!(expr_tools::eval("2 * x + sqrt(16)", &ctx)?, 10.0);
```