Recursive descent calculator in C++11