예제 #1
0
 def load(self, source):
     ast = parse_file(source)
     bytedata = self.inter.complie(ast)
     
     frame = self.inter.global_frame
     frame.reset()
     self.inter.interpreter(byttedata, frame)
예제 #2
0
 def _complie_source(self, path):
     ast = parse_file(path)
     self.interp = Interpreter()
     bytedata = self.interp.assemble_ast(ast)
     
     return bytedata