Made an untested (and not sure if conceptually correct) string comparrison function for identifying nonterminal names while passing inherited attributes.