Made generated parser C++-compatible