adding parser now written in c++