Moved responsibilities from parser to GrammarDfa.