def __repr__(self): arg_strings = [] for name in self.arg_names: arg_strings.append("%s : %s" % (name, self.type_env.get(name))) return "function %s(%s) => %s:%s" % \ (self.name, ", ".join(arg_strings), self.return_type, block_to_str(self.body))
def __repr__(self): return "def %s(%s):%s" % (self.name, self.args, block_to_str(self.body))
def __repr__(self): return "def %s(%s):%s" % (self.name, self.args, block_to_str( self.body))