| Crates.io | prejsx_math |
| lib.rs | prejsx_math |
| version | 0.1.0 |
| created_at | 2025-10-12 09:46:46.605895+00 |
| updated_at | 2025-10-12 09:46:46.605895+00 |
| description | A minimal math expression parser using only Rust's standard library |
| homepage | |
| repository | https://github.com/Pjdur/prejsx_math |
| max_upload_size | |
| id | 1879110 |
| size | 6,714 |
A minimal math expression parser using only Rust's standard library. Supports +, -, *, /, parentheses, and negative numbers.
use prejsx_math::eval_math;
fn main() {
let result = eval_math("2 * (3 + 1)").unwrap();
println!("{}", result); // 8.0
}