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)
def _complie_source(self, path): ast = parse_file(path) self.interp = Interpreter() bytedata = self.interp.assemble_ast(ast) return bytedata