modify definition of GrammarParser