#math-expression-parser #math-parser #parser-expression #no-deps

no-std prejsx_math

A minimal math expression parser using only Rust's standard library

1 unstable release

0.1.0 Oct 12, 2025

#180 in Parser tooling


Used in prejsx

MIT/Apache

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
}

No runtime deps