protocol sccript parser for c++