prejsx_math

Crates.ioprejsx_math
lib.rsprejsx_math
version0.1.0
created_at2025-10-12 09:46:46.605895+00
updated_at2025-10-12 09:46:46.605895+00
descriptionA minimal math expression parser using only Rust's standard library
homepage
repositoryhttps://github.com/Pjdur/prejsx_math
max_upload_size
id1879110
size6,714
Pjdur (Pjdur)

documentation

README

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
}
Commit count: 0

cargo fmt