parameters: (value, name)
docstring: Register a new TokenKind enumeration.
  
          This should only be called at module load time by code within this
          package.
docstring_summary: Register a new TokenKind enumeration.
docstring_tokens: Register a new TokenKind enumeration .
function: def register(value, name):
          """Register a new TokenKind enumeration.
  
          This should only be called at module load time by code within this
          package.
          """
          if value in TokenKind._value_map:
              raise ValueError('TokenKind already registered: %d' % value)
  
          kind = TokenKind(value, name)
          TokenKind._value_map[value] = kind
          setattr(TokenKind, name, kind)
function_tokens: def register ( value , name ) : if value in TokenKind . _value_map : raise ValueError ( 'TokenKind already registered: %d' % value ) kind = TokenKind ( value , name ) TokenKind . _value_map [ value ] = kind setattr ( TokenKind , name , kind )