'Return True if this non-terminal is equal to ``other``.  In
particular, return True if ``other`` is a ``Nonterminal``
and this non-terminal\'s symbol is equal to ``other`` \'s symbol.
:rtype: bool'

def __eq__(self, other):

    return ((type(self) == type(other)) and (self._symbol == other._symbol))
