Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.18 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.18 KB

EvalExpr

Epitech Project, EvalExpr

visitor badge

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.

Operators

Support:

Operator Description
+ Plus sign
- Minus sign
* Multiplication sign
/ Division sign
^ Exponent sign

How to use EvalExpr ?

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

How to run the Unit Test ?

 > make && test_run
 

Authors