1 unstable release
| 0.1.0 | Oct 12, 2025 |
|---|
#180 in Parser tooling
Used in prejsx
5KB
87 lines
prejsx_math
A minimal math expression parser using only Rust's standard library. Supports +, -, *, /, parentheses, and negative numbers.
Example
use prejsx_math::eval_math;
fn main() {
let result = eval_math("2 * (3 + 1)").unwrap();
println!("{}", result); // 8.0
}