Closed davidweichiang closed 3 years ago
because HRG.add_terminal can only be used on terminals and HRG.add_nonterminal can only be used on nonterminals; why not just HRG.add_edge_label?
I agree that there's some redundant stuff in there; I've been thinking the same thing. I'd be up for removing some of those functions.
because HRG.add_terminal can only be used on terminals and HRG.add_nonterminal can only be used on nonterminals; why not just HRG.add_edge_label?