prejsx_math 0.1.0

A minimal math expression parser using only Rust's standard library
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 6.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 247 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Pjdur

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
}