def parse(self, node): if isinstance(self.frame,GlobalFrame): futures = self._futures = Future() futures.preprocessFutures(node,None) ScopesCompiler(self).parse(node) self.frame.setScope(node.scope) ret = BaseEvaluator.parse(self, node) #print 'parse', ret decs = self.free_decls + self.frame.getDeclarations() if len(decs) != 0: return [decs, jast.SimpleComment('Code'), ret] else: return ret
def parse(self, node): if isinstance(self.frame, GlobalFrame): futures = self._futures = Future() futures.preprocessFutures(node, None) ScopesCompiler(self).parse(node) self.frame.setScope(node.scope) ret = BaseEvaluator.parse(self, node) #print 'parse', ret decs = self.free_decls + self.frame.getDeclarations() if len(decs) != 0: return [decs, jast.SimpleComment('Code'), ret] else: return ret