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

    assert tree.gencode() == "!(a || (b && c))"
示例#2
0
文件: coffee.py 项目: tj-sun/tsfc
def _expression_logicalor(expr, parameters):
    return coffee.Or(*[expression(c, parameters) for c in expr.children])
示例#3
0
def test_unary_op():
    tree = ast.Not(ast.Or("a", ast.And("b", "c")))

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