Exemple #1
0
def check_visit(expr):
    ef = ExprFunctor()
    try:
        ef.visit(expr)
        assert False
    except NotImplementedError:
        pass

    em = ExprMutator()
    assert em.visit(expr)
Exemple #2
0
def check_visit(expr):
    try:
        ef = ExprFunctor()
        ef.visit(expr)
        assert False
    except NotImplementedError:
        pass

    ev = ExprVisitor()
    ev.visit(expr)

    em = ExprMutator()
    assert em.visit(expr)
Exemple #3
0
 def __init__(self):
     ExprFunctor.__init__(self)
Exemple #4
0
 def __init__(self):
     ExprFunctor.__init__(self)