parameters: (cls, name, tokendefs=None)
return_statement: return processed
docstring: Preprocess a dictionary of token definitions.
docstring_summary: Preprocess a dictionary of token definitions.
docstring_tokens: Preprocess a dictionary of token definitions .
function: 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 list(tokendefs):
              cls._process_state(tokendefs, processed, state)
          return processed
function_tokens: def process_tokendef ( cls , name , tokendefs = None ) : processed = cls . _all_tokens [ name ] = { } tokendefs = tokendefs or cls . tokens [ name ] for state in list ( tokendefs ) : cls . _process_state ( tokendefs , processed , state ) return processed