|
@@ -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)
|