Example #1
0
 def load(self, printer, ctx):
     symbols = list(o.load(printer, ctx) for o in self.operands)
     return merge_symbols("__boolop__", *symbols)
Example #2
0
 def load(self, printer, ctx):
     if not self.orelse: return self.body.load(printer, ctx)
     body = self.body.load(printer, ctx)
     orelse = self.orelse.load(printer, ctx)
     return merge_symbols("__if__", body, orelse)
Example #3
0
 def load(self, printer, ctx):
     callee_symbol = merge_symbols(self.nick(), *self.local.callee_symbols)
     result_symbol = make_result_symbol(ctx.builder, callee_symbol)
     if not result_symbol:
         printer("? Can't load callee result:", callee_symbol)
     return result_symbol