removing GrammarRule and incorporating rule information into nonterminal
class