Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(1) | Derive(0) | Import(0)
return and discard the next S expression, along with any nested ones in input
def getSexp () : # get an S expression from the user "return and discard the next S expression, along with any nested ones in input" a = getToken() if a == "'" : return ['quote', getSexp()] elif a != '(' : return a a = [] while 1 : b = getSexp() if b == ')' : return a a.append(b)
def main () : "get S expressions and evaluate them. Print the results" global Alist while 1 : try : s = lispio.getSexp()