'Make comparisons with strings easy.
Improves the readability of the parser.'

def __eq__(self, other):

    if isinstance(other, (str, unicode)):
        return (self.value == other)
    return (self is other)
