eval
eval copied to clipboard
[ABANDONED] Expression evaluator for Rust
Evaluation order seems to be wrong when the dot operator is used. ```rust #[test] fn test_operator_precedence() { // Show that operator precedence is working as expected. assert_eq!(eval(r#""a" == "a" &&...
* ```eval("-5")``` results in ```Err(StartWithNonValueOperator)``` * ```eval("5*-5")``` results in ```Err(DuplicateOperatorNode)```
Note: for PartialEq compares only string expressions - without context.