1 unstable release
0.1.1 | Jul 19, 2022 |
---|
#12 in #notatio
4KB
RPN Calc
Reverse Polish notation (RPN) Calc.
Example
let src = String::from("1 2 + 3 * ");
let a = rpn_calc::eval(src).unwrap();
println!("{}", a); // →9
0.1.1 | Jul 19, 2022 |
---|
#12 in #notatio
4KB
Reverse Polish notation (RPN) Calc.
let src = String::from("1 2 + 3 * ");
let a = rpn_calc::eval(src).unwrap();
println!("{}", a); // →9