def apply(self, args): nlist = [] while args is not None: nlist.append(args.first().evaluate()) args = args.rest() _RecurInfo.set_recur(List.from_list(nlist)) return None
def read_list(self, start, reader, end): lst = [] reader.next() while True: term = self.read_term(reader) if term is None: raise Exception("EOF wile reading list") if isinstance(term, StrObj) and term.str_value() == ")": reader.next(); return List.from_list(lst) lst.append(term)