(self, syntax)
Build dictionaries.
Build dictionaries.
Build dictionaries .
def __init__(self, syntax):
        """Build dictionaries."""
        self.to_keyword = dict(KEYWORDS)
        if syntax in ('pcjr', 'tandy'):
            # pcjr, tandy; incompatible with Sperry PC.
            self.to_keyword[NOISE] = KW_NOISE
            self.to_keyword[TERM] = KW_TERM
        self.to_token = dict((reversed(item) for item in iteritems(self.to_keyword)))
def __init__ ( self , syntax ) : self . to_keyword = dict ( KEYWORDS ) if syntax in ( 'pcjr' , 'tandy' ) : # pcjr, tandy; incompatible with Sperry PC. self . to_keyword [ NOISE ] = KW_NOISE self . to_keyword [ TERM ] = KW_TERM self . to_token = dict ( ( reversed ( item ) for item in iteritems ( self . to_keyword ) ) )