Evaluates simple arithmethic expressions. Reads only single digit numbers, 4 binary
operators (+ - * -
) and brackets ()
. Additionally, the space
char is ignored.
See the ValidInputsTest file for examples
- Boost Unit Test Framework
Install as a standard cmake project:
mkdir build
cd build
cmake ..
make
From the build
dir:
$ ../bin/parse "3 + 1"
After Installing, run the tests by
make test
OR
ctest --verbose