Update nonterminal names.