This is the simplest possible "math parser". It can serve as an educational material for learning about recursive descent parsing. It handles precedence, negative numbers, powers and parenthesis.
git clone https://github.com/jakubsmolaga/simple-math.git
cd simple-math
make
./simple-math
- Compiler that supports
C99
. - Operating system with
libc
- make (optional)