Exemple #1
0
def test_unary_op():
    tree = ast.Not(ast.Or("a", ast.And("b", "c")))

    assert tree.gencode() == "!(a || (b && c))"
Exemple #2
0
def _expression_logicaland(expr, parameters):
    return coffee.And(*[expression(c, parameters) for c in expr.children])
Exemple #3
0
def test_unary_op():
    tree = ast.Not(ast.Or("a", ast.And("b", "c")))

    assert tree.gencode() == "!((a) || (((b) && (c))))"