A simple parser of math expressions in C++