clc-engine
[Calculator] calculate given expression.
Core functionality for clc.
Examples
use Calculator;
let clc = new;
let eval = clc.calculate_line;
assert_eq!;
Division by zero
use ;
let clc = new;
let err = clc.calculate_line;
assert_eq!;
Under the hood clc-engine use nom to parse expression
License
This project is available under the terms of either the Apache 2.0 license or the MIT license.