示例#1
0
def IfStmt_Case_3() -> bool:
    box = BoxMachinePlus()

    if box.query(DStr("ident")) == "Box":
        v = core.DInt(1)

    return True
示例#2
0
def IfStmt_Case_2() -> bool:
    box = BoxMachinePlus()
    v = 1

    if box.query(DStr("ident")) == "Box":
        v = 2
    else:
        v = 3

    return True
示例#3
0
def AssignStmts_Case_1() -> bool:
    box = BoxMachinePlus()
    info = box.query(DStr("things"))
    box.op(info)
    return True
示例#4
0
def CallExpression_Case_2() -> bool:
    box = BoxMachinePlus()
    box.op(DStr("thing"))
    return True
示例#5
0
def CallExpression_Case_1() -> bool:
    box = BoxMachinePlus()
    box.op(box.query(DStr("things")))

    return True
示例#6
0
def BinEqual_Case_3() -> bool:
    box = BoxMachinePlus()
    box.query(DStr("A")) == "A"

    return True