Epitech Project, EvalExpr
The goal of this project is to implement a functional EvalExpr, that is able to parse a string given as argument and display the resulting value, followed by a new line.
Support:
Operator | Description |
---|---|
+ |
Plus sign |
- |
Minus sign |
* |
Multiplication sign |
/ |
Division sign |
^ |
Exponent sign |
Compile the makefile (make) and add some arithmetic expression like this !
$> ./funEvalExpr "6 * 12 / 2 * (1 - 2 - (2 - 4 - 5) - 10) ^ 2 * (2 - 7 - 4) ^ 3" $> -419904.00
> make && test_run