Add a method to print out the grammar nonterminals and their corresponding productions.