(cls, *args, **kwds)
return type.__call__(cls, *args, **kwds)
Instantiate cls after preprocessing its token definitions.
Instantiate cls after preprocessing its token definitions.
Instantiate cls after preprocessing its token definitions .
def __call__(cls, *args, **kwds):
        """Instantiate cls after preprocessing its token definitions."""
        if '_tokens' not in cls.__dict__:
            cls._all_tokens = {}
            cls._tmpname = 0
            if hasattr(cls, 'token_variants') and cls.token_variants:
                # don't process yet
                pass
            else:
                cls._tokens = cls.process_tokendef('', cls.tokens)

        return type.__call__(cls, *args, **kwds)
def __call__ ( cls , * args , * * kwds ) : if '_tokens' not in cls . __dict__ : cls . _all_tokens = { } cls . _tmpname = 0 if hasattr ( cls , 'token_variants' ) and cls . token_variants : # don't process yet pass else : cls . _tokens = cls . process_tokendef ( '' , cls . tokens ) return type . __call__ ( cls , * args , * * kwds )