def BINARY_(OP):
def BINARY_OP(self, instr):
right = self.ast_stack.pop()
left = self.ast_stack.pop()
add = _ast.BinOp(left=left, right=right, op=OP(), lineno=instr.lineno, col_offset=0)
self.ast_stack.append(add)
return BINARY_OP
评论列表
文章目录