mō üÎ Cc@s[dZdklZdeifd„ƒYZdeifd„ƒYZd„Zd„ZdS( sÏ python simplifier does tree transformations on the python AST to make pirate's job easier later on. - turns list comprehensions into for/ifs - (eventually) pre-categorizes functions and generators (sasttSimpleListCompcBstZd„Zd„ZRS(NcCs ||_dS(N(tforLooptself(RR((t:/web/script/sabren/pirate.tangentcode.com/pirate/simple.pyt__init__scCs |igS(N(RR(R((Rt getChildNodess(t__name__t __module__RR(((RRs t ListCompCorecBstZd„ZRS(NcCs ||_dS(N(texprR(RR ((RRs(RRR(((RRsc CsĖ|d|d}}t|tiƒo9tid|id|idt |i |ƒdd ƒSnht|ti ƒo,ti d|it |ƒfgdd ƒSn)t|tƒo|Snd|ii‚d S( sN do our own walk of the tree and rebuild using ast.For and ast.If iitassigntlisttbodytelse_ttestssi can't comprehend a %sN(tqueuetheadttailt isinstancetastt ListCompFortForR R t comprehendtifstNonet ListCompIftIfttestRt __class__R(RRR((RR"s cCs)|it|iƒg}tt|ƒƒS(N(tnodetqualsRR RRR(RR((RtsimplifyListComp6sN(t__doc__tcompilerRtNodeRRRR(RRRRR((Rt? s