A simple tool to parse one digit calculator syntax using only +, -, * and / operators. It is allowed to use parenthesis (,) as well.
Parser tool will try to parse any expression that come from standard input:
$ echo "2+2" | Parser
4
$ Parser < expression.txt
44.8Use cmake to build the code. For example:
$ cd Parser
$ mkdir bin
$ cd bin
$ cmake ..
...
$ make
$ echo "1+1" | ./Parser
2Project also has unit-tests and to build them do similar:
$ cd Parser
$ mkdir test-bin
$ cd test-bin
$ cmake ../test
...
$ make