extract GrammarMapper