code: 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)
docs: Register a new TokenKind enumeration.
  
          This should only be called at module load time by code within this
          package.