(cls, name, tokendefs=None)
return processed
Preprocess a dictionary of token definitions.
Preprocess a dictionary of token definitions.
Preprocess a dictionary of token definitions .
def process_tokendef(cls, name, tokendefs=None):
        """Preprocess a dictionary of token definitions."""
        processed = cls._all_tokens[name] = {}
        tokendefs = tokendefs or cls.tokens[name]
        for state in tokendefs.keys():
            cls._process_state(tokendefs, processed, state)
        return processed
def process_tokendef ( cls , name , tokendefs = None ) : processed = cls . _all_tokens [ name ] = { } tokendefs = tokendefs or cls . tokens [ name ] for state in tokendefs . keys ( ) : cls . _process_state ( tokendefs , processed , state ) return processed