Implemented standalone nonterminal and production filtering.
Implemented extension nonterminal and production filtering.