pyrser/parsing/functors.py
def do_call(self, parser: BasicParser) -> Node:
        """
            The Decorator call is the one that actually pushes/pops
            the decorator in the active decorators list (parsing._decorators)
        """
        valueparam = []
        for v, t in self.param:
            if t is Node:
                valueparam.append(parser.rule_nodes[v])
            elif type(v) is t:
                valueparam.append(v)
            else:
                raise TypeError(
                    "Type mismatch expected {} got {}".format(t, type(v)))

        if not self.checkParam(self.decorator_class, valueparam):
            return False

        decorator = self.decorator_class(*valueparam)

        global _decorators
        _decorators.append(decorator)
        res = self.pt(parser)
        _decorators.pop()

        return res
def do_call(self, parser: BasicParser) -> Node:
        """
            The Decorator call is the one that actually pushes/pops
            the decorator in the active decorators list (parsing._decorators)
        """
        valueparam = []
        for v, t in self.param:
            if t is Node:
                valueparam.append(parser.rule_nodes[v])
            elif type(v) is t:
                valueparam.append(v)
            else:
                raise TypeError(
                    "Type mismatch expected {} got {}".format(t, type(v)))

        if not self.checkParam(self.decorator_class, valueparam):
            return False

        decorator = self.decorator_class(*valueparam)

        global _decorators
        _decorators.append(decorator)
        res = self.pt(parser)
        _decorators.pop()

        return res
The Decorator call is the one that actually pushes/pops
            the decorator in the active decorators list (parsing._decorators)