Adds method to get all non-terminal symbols.