Browse Source

Also patched the bootstrap generator

Yentl Van Tendeloo 8 years ago
parent
commit
f687eefa94

+ 5 - 5
interface/HUTN/hutn_compiler/bootstrap_visitor.py

@@ -1,5 +1,5 @@
 import string
-from primitives_visitor import PrimitivesVisitor
+from primitives_visitor import PrimitivesVisitor, Action
 
 class BootstrapVisitor(PrimitivesVisitor):
     def __init__(self, args):
@@ -7,10 +7,10 @@ class BootstrapVisitor(PrimitivesVisitor):
 
     def dump(self):
         link_id = 0
-        call = self.value("call")
-        access = self.value("access")
-        resolve = self.value("resolve")
-        main = self.value('"__main"')
+        call = self.value(Action("call"))
+        access = self.value(Action("access"))
+        resolve = self.value(Action("resolve"))
+        main = self.value("__main")
         self.dict(resolve, "var", main)
         self.dict(access, "var", resolve)
         self.dict(call, "func", access)

+ 1 - 0
kernel/modelverse_kernel/main.py

@@ -52,6 +52,7 @@ class ModelverseKernel(object):
                                ("RV", [phase]),
                                ("RV", [inst]),
                               ]
+        print(inst_v)
         if self.new_debug is not None:
             self.debug_info, = yield [("RV", [self.new_debug])]