Added functions for adding attributes to a nonterminal.