def __init__(self, name, expr): TokenConverter.__init__(self, expr) self.name = name self.evalfn = None
def __init__(self, name, expr): self.expr = expr TokenConverter.__init__(self, expr) self.setName(name) self.evalfn = None
def __init__(self, name, expr, isList=False): self.name = name self.isList = isList TokenConverter.__init__(self, expr) self.addParseAction(self.postParse2)
def _ungroup(expr): return TokenConverter(expr).setParseAction(lambda t: t[0])