示例#1
0
文件: pyc_asm_list.py 项目: 0xcc/pyc
	def set_var(self, var, expr, var_tbl):
		return pyc_vis.dispatch_to_prefix(
			self, 
			'set_var_to_', 
			'set_var_default', 
			expr, 
			var,
			var_tbl
		)
示例#2
0
文件: pyc_ir.py 项目: 0xcc/pyc
	def visit_BoolOp(self, node):
		def unknown_op(node, *args):
			raise Exception("unsupported BoolOp: %s" % ast.dump(node))

		return pyc_vis.dispatch_to_prefix(
			self,
			'visit_BoolOp_',
			unknown_op,			
			node.op,
			node
		)
示例#3
0
文件: pyc_asm_list.py 项目: 0xcc/pyc
	def set_var_to_UnaryOp(self, node, var, var_tbl):
		def unknown_unaryop(op, node, var, var_tbl):
			raise Exception("unknown unary op: %s" % ast.dump(op))

		return pyc_vis.dispatch_to_prefix(
			self, 
			'set_var_to_UnaryOp_', 
			unknown_unaryop,
			node.op, 
			node,
			var,
			var_tbl
		)