table implemented, enum for nonterminal implemented