Defining structure of terminals/nonterminals sharing a subclass so nonterminals can include their subparts