Browse Source

Add wrapper for literal text reading

Yentl Van Tendeloo 8 years ago
parent
commit
d41be5212d
3 changed files with 1299 additions and 1300 deletions
  1. 1297 1297
      bootstrap/bootstrap.m
  2. 2 2
      interface/HUTN/hutn_compiler/primitives_visitor.py
  3. 0 1
      kernel/modelverse_kernel/main.py

File diff suppressed because it is too large
+ 1297 - 1297
bootstrap/bootstrap.m


+ 2 - 2
interface/HUTN/hutn_compiler/primitives_visitor.py

@@ -189,8 +189,8 @@ class PrimitivesVisitor(Visitor):
             v = tree.get_text()[1:]
         else:
             v = tree.get_text()
-        #TODO does this work for actions?
-        n = self.value(v)
+        #NOTE Wrap this in an Action, even though it might not be an action: this has to be seen directly in the Mv without additional wrapping
+        n = self.value(Action(v))
         self.dict(c, "node", n)
         self.debug(c, tree)
 

+ 0 - 1
kernel/modelverse_kernel/main.py

@@ -52,7 +52,6 @@ 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])]