Multiply with parentheses wont work
Reproduction:
use calc::eval;
// ...
println!("{:?}", eval("2*(2*2)"));
Expected behavior: results in 8
Actual behavior: A error with message InvalidOperator('*')
Build information:
-
calc
: Latest version from crates.io (0.5.1
) -
rustc -V
:rustc 1.33.0 (2aa4c46cf 2019-02-28)
- System: MacOS Mojave 10.14.4