diff python/irmach.py @ 261:444b9df2ed99

try to split up code generation
author Windel Bouwman
date Fri, 09 Aug 2013 09:05:13 +0200
parents
children 5ec7580976d9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/irmach.py	Fri Aug 09 09:05:13 2013 +0200
@@ -0,0 +1,23 @@
+
+
+class MachProgram:
+    pass
+
+
+class MachFunction:
+    def __init__(self, name):
+        self.name = name
+        self.entry = None
+
+
+class MachBlock:
+    def __init__(self):
+        self.instructions = []
+
+
+class MachIns:
+    """ Absract machine instruction """
+    def __init__(self, mi):
+        self.mi = mi
+        
+