rough out the c++ parser API and a simple test