Parser for compiler in C++