comparison python/ir/instruction.py @ 155:b28a11c01dbe

Simplified IR classes
author Windel Bouwman
date Sun, 03 Mar 2013 13:20:03 +0100
parents 4e79484a9d47
children 8f3924b6076e
comparison
equal deleted inserted replaced
154:81e08e2e7777 155:b28a11c01dbe
1
2 from .value import Value
3 1
4 def Enum(**enums): 2 def Enum(**enums):
5 return type('Enum', (), enums) 3 return type('Enum', (), enums)
6 4
7 class Instruction(Value): 5 class Instruction:
8 """ Base class for all instructions. """ 6 """ Base class for all instructions. """
9 pass 7 pass
10 8
11 class CallInstruction(Instruction): 9 class CallInstruction(Instruction):
12 def __init__(self, callee, arguments): 10 def __init__(self, callee, arguments):