A simple compiler implementation in C++