tree parsing: handle nonterminal label not in grammar