modify lexer and parser class declaration because of TGrammar