def __init__(self, keyword):
        """Adds lowercase keyword to the keyword table."""
        try:
            self.grammar
        except AttributeError:
            raise GrammarValueError(self.__class__.__name__ + " expects a grammar attribute (Enum).")

        keyword = keyword.lower()
        if keyword not in Keyword.table:
            Keyword.table[keyword] = self
        self.name = keyword
def __init__ ( self , keyword ) : try : self . grammar except AttributeError : raise GrammarValueError ( self . __class__ . __name__ + " expects a grammar attribute (Enum)." ) keyword = keyword . lower ( ) if keyword not in Keyword . table : Keyword . table [ keyword ] = self self . name = keyword
Adds lowercase keyword to the keyword table.