expr.rs
A safe and simple math evaluator for Rust.
Features
Basic operations such as
- addition
- subtraction
- multiplication
- division
- modulo
- exponentiation
- negation
- factorial
are supported
Features like sin, cos, tan, log, and more are planned for the future.
A python interface is also planned for the future.
Usage
use parser;
assert_eq!;
In Python
assert == 3
In CLI