modified the whole lexer/parser structure to produce a full reentrant C++ parser with bison3.0