config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/compiler/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/compiler/transformer.pyc

łň
h”Rc0@s„dZddkTddkZddkZddkZddkZdefd„ƒYZddkl	Z	l
Z
ddklZlZl
Z
d„Zd	d
„Zd„Zd„Zd
„Zdfd„ƒYZeieieieieieieieieieieieiei ei!ei"ei#gZ$hdei%<dei&<dei'<dei(<dei)<dei*<dei+<Z,ei-ei.ei/ei0ei1ei2ei3eiei4ei5ei6ei7ei8ei9ei:ei;ei<ei=ei>ei?ei@eiAeiBeiCeiDeieieieieieieiEeieieieiei ei!ei"ei#eiFg)ZGeHedƒoeGiIeiJƒneHedƒoeGiIeiKƒneieieieieieieieieiei ei!ei"gZLhZMx'eiNiOƒD]\ZPZQeQeMeP<q3Wx'eiRiOƒD]\ZPZQeQeMeP<q]Wd„ZSdS(sîParse tree transformation module.

Transforms Python source code into an abstract syntax tree (AST)
defined in the ast module.

The simplest ways to invoke this module are via parse and parseFile.
parse(buf) -> AST
parseFile(path) -> AST
i˙˙˙˙(t*NtWalkerErrorcBseZRS((t__name__t
__module__(((s0/usr/local/lib/python2.5/compiler/transformer.pyR"s(t
CO_VARARGStCO_VARKEYWORDS(t	OP_ASSIGNt	OP_DELETEtOP_APPLYcCs3t|dƒ}|iƒd}|iƒt|ƒS(NtUs
(topentreadtclosetparse(tpathtftsrc((s0/usr/local/lib/python2.5/compiler/transformer.pyt	parseFile(s
texeccCs_|djp
|djotƒi|ƒSn.|djotƒi|ƒSn
tdƒ‚dS(NRtsingletevals4compile() arg 3 must be 'exec' or 'eval' or 'single'(tTransformert
parsesuitet	parseexprt
ValueError(tbuftmode((s0/usr/local/lib/python2.5/compiler/transformer.pyR
2s

cCsľg}x¨|D] }t|dƒo|i|iƒƒq
t|ƒtdƒjo|itt|ƒƒƒq
t|ƒtgƒjo|it|ƒƒq
|i|ƒq
W|S(NtasList(NN(thasattrtappendRttypetNonettuple(tnodestltitem((s0/usr/local/lib/python2.5/compiler/transformer.pyR;scCsnt|dtƒp|dSnxG|dD];}t|tƒo%t|ƒ}|dj	o|Sqfq+q+WdS(Nii(t
isinstanceR t
extractLineNoR(tasttchildtlineno((s0/usr/local/lib/python2.5/compiler/transformer.pyR%Is
cGs{|d}ti|ƒoJyt||dŒSWqwtj
o!t|Gt|ƒG|GH‚qwXntdt|ƒ‚dS(Niis$Can't find appropriate Node type: %s(R!thas_keyt	TypeErrortlenRtstr(targstkind((s0/usr/local/lib/python2.5/compiler/transformer.pytNodeSs
RcBsteZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„ZeZd„Zd„ZeZeZeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d „Z&d!„Z'd"„Z(d#„Z)d$„Z*d%„Z+d&„Z,d'„Z-d(„Z.d)„Z/d*„Z0d+„Z1d,„Z2d-„Z3d.„Z4d/„Z5d0„Z6d1„Z7d2„Z8e8Z9e8Z:e8Z;d3„Z<d4„Z=d5„Z>e>Z?d6„Z@d7„ZAd8„ZBd9„ZCd:„ZDd;„ZEd<„ZFd=„ZGd>„ZHd?„ZId@„ZJdA„ZKdB„ZLdC„ZMdD„ZNdE„ZOdF„ZPdG„ZQdH„ZRdI„ZSdJ„ZTdK„ZUdL„ZVdM„ZWdN„ZXdO„ZYdP„ZZdQ„Z[dR„Z\dS„Z]dT„Z^dU„Z_dV„Z`dW„ZadX„ZbdY„ZcdZ„Zdd[„Zed\„Zfd]„Zgd^„Zhd_„Zid`„Zjda„Zkdb„Zldc„Zmeneoddƒode„Zpdf„Zqdg„Zrn
dh„Zpeneodiƒodj„Zsdk„Ztndl„Zudm„Zvdn„Zwdo„Zxdp„Zydq„Zzdr„Z{ds„Z|dt„Z}dvdu„ZRS(wsęUtility object for transforming Python parse trees.

    Exposes the following methods:
        tree = transform(ast_tree)
        tree = parsesuite(text)
        tree = parseexpr(text)
        tree = parsefile(fileob | filename)
    cCsĺh|_xGtiiƒD]6\}}t||ƒot||ƒ|i|<qqW|i|iti<h|i	ti
<|iti<|i
ti<|iti<|iti<|iti<|iti<|_d|_dS(N(t	_dispatchtsymboltsym_nametitemsRtgetattrtcom_NEWLINEttokentNEWLINEt	atom_lpartLPARt	atom_lsqbtLSQBtatom_lbracetLBRACEtatom_backquotet	BACKQUOTEtatom_numbertNUMBERtatom_stringtSTRINGt	atom_nametNAMEt_atom_dispatchRtencoding(tselftvaluetname((s0/usr/local/lib/python2.5/compiler/transformer.pyt__init__is	cCsFt|tƒp
t|tƒpti|ddƒ}n|i|ƒS(s,Transform an AST into a modified parse tree.t	line_infoi(R$R tlisttparsert	ast2tupletcompile_node(RHttree((s0/usr/local/lib/python2.5/compiler/transformer.pyt	transformys cCs|iti|ƒƒS(s6Return a modified parse tree for the given suite text.(RRRNtsuite(RHttext((s0/usr/local/lib/python2.5/compiler/transformer.pyRscCs|iti|ƒƒS(s;Return a modified parse tree for the given expression text.(RRRNtexpr(RHRT((s0/usr/local/lib/python2.5/compiler/transformer.pyRƒscCs<t|ƒtdƒjot|ƒ}n|i|iƒƒS(s@Return a modified parse tree for the contents of the given file.t(RR
RR(RHtfile((s0/usr/local/lib/python2.5/compiler/transformer.pyt	parsefile‡sc	Cs0|d}|tijo%|d|_|d}|d}n|tijo|i|dƒSn|tijo|i|dƒSn|tijo|i|dƒSn|tijo|i|dƒSn|tijo|i|dƒSn|tijo|i|dƒSnt	d|f‚dS(Niiisunexpected node type(
R1t
encoding_declRGtsingle_inputt
file_inputt
eval_inputtlambdeftfuncdeftclassdefR(RHtnodetn((s0/usr/local/lib/python2.5/compiler/transformer.pyRP’s$


cCs:|dd}|tijo|i|dƒSntƒS(Ni(R6R7tcom_stmttPass(RHR`Ra((s0/usr/local/lib/python2.5/compiler/transformer.pyRZŞscCsœ|i|tiƒ}|dj	o
d}nd}g}xN||D]B}|dtijo(|dtijo|i||ƒqCqCWt|t	|ƒƒS(Nii(
t
get_docstringR1R[RR6t	ENDMARKERR7tcom_append_stmttModuletStmt(RHtnodelisttdoctitstmtsR`((s0/usr/local/lib/python2.5/compiler/transformer.pyR[´s

(cCst|i|dƒƒS(Ni(t
Expressiontcom_node(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR\ŔscCsĆt|ƒ}|djo|ddjpt‚|i|ƒ}d}xy||jok||dtijpt‚||ddtijpt‚t|||ddƒ}|d7}qIW|S(Niii(R+tAssertionErrorRDR6tDOTREtGetattr(RHRitlistlenR#Rk((s0/usr/local/lib/python2.5/compiler/transformer.pytdecorator_nameĹs%
#cCsät|ƒdjpt‚|ddtijpt‚|ddtijpt‚|ddtijpt‚|i|ddƒ}t|ƒdjo9|ddtijpt‚|i	||dƒ}n|}|S(	Niiiii˙˙˙˙ii(iii(
R+RoR6tATR7R1tdotted_nameRsR9tcom_call_function(RHRitfuncnameRU((s0/usr/local/lib/python2.5/compiler/transformer.pyt	decoratorÓscCsVg}xC|D];}|dtijpt‚|i|i|dƒƒq
Wt|ƒS(Nii(R1RxRoRt
Decorators(RHRiR3tdec_nodelist((s0/usr/local/lib/python2.5/compiler/transformer.pyt
decoratorsäscCsst|ƒdjo:|ddtijpt‚|i|ddƒ}n!t|ƒdjpt‚d}|dd}|dd}|dd}|dtijo |i|dƒ\}}}nd
}}d}|i|dƒ}	|i|dƒ}
|	dj	oCt	|
t
ƒpt‚t	|
idtƒpt‚|
id=nt
||||||	|
d	|ƒS(Niiiiiü˙˙˙iiý˙˙˙i˙˙˙˙R(((R+R1R{RoRtvarargslisttcom_arglistRdRnR$RhR!tDiscardtFunction(RHRiR{R(RJR-tnamestdefaultstflagsRjtcode((s0/usr/local/lib/python2.5/compiler/transformer.pyR^ěs( 

c	Cs€|ddtijo$|i|ddƒ\}}}nd}}d}|i|dƒ}t||||d|ddƒS(Niiii˙˙˙˙R(((R1R|R}RntLambda(RHRiR€RR‚Rƒ((s0/usr/local/lib/python2.5/compiler/transformer.pyR]
s$
cCsü|dd}|i|dƒ}|ddtijo
g}n6|ddtijo
g}n|i|dƒ}|i|dƒ}|dj	oCt|tƒpt	‚t|i
dtƒpt	‚|i
d=nt||||d|ddƒS(Nii˙˙˙˙iiiR((
RdR6tCOLONtRPARt	com_basesRnRR$RhRoR!R~tClass(RHRiRJRjtbasesRƒ((s0/usr/local/lib/python2.5/compiler/transformer.pyR_s


cCs|i|dƒS(Ni(Rb(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytstmt1scCsGg}x4tdt|ƒdƒD]}|i|||ƒqWt|ƒS(Nii(trangeR+RfRh(RHRiRlRk((s0/usr/local/lib/python2.5/compiler/transformer.pytsimple_stmt8s
cCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyt
parameters?scCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR|BscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytfpdefEscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytfplistHscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyRuKscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytcomp_opNscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyttrailerQscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytsliceopTscCs
t‚dS(N(R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytargumentWsc	Cs|d}|i|ƒ|dƒ}t|ƒdjot|d|iƒSn|ddtijoig}xAtdt|ƒddƒD]#}|i|i||t	ƒƒqˆWt
||d|ddƒSnE|i|dƒ}|i|dƒ}t
||d|d|dƒStd‚dS(Ni˙˙˙˙iR(iiscan't get here(tlookup_nodeR+R~R(R6tEQUALR‹Rt
com_assignRtAssignt
com_augassigntcom_augassign_opt	AugAssignR(RHRitentexprNodetnodeslRktlvaltop((s0/usr/local/lib/python2.5/compiler/transformer.pyt	expr_stmt_s
!cCs+g}t|ƒdjod}d}nt|ddtijoOt|ƒdjp|ddtijpt‚|i|dƒ}d}n
d}d}x:t|t|ƒdƒD] }|i|i||ƒƒqľW|ddtijot	||d|ddƒSnt
||d|ddƒS(Niiiiii˙˙˙˙R((R+RR6t
RIGHTSHIFTtCOMMARoRnR‹RtPrinttPrintnl(RHRiR3tstarttdestRk((s0/usr/local/lib/python2.5/compiler/transformer.pyt
print_stmtps"

cCs|i|dtƒS(Ni(R–R(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytdel_stmt„scCstd|ddƒS(NR(ii(Rc(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyt	pass_stmt‡scCstd|ddƒS(NR(ii(tBreak(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyt
break_stmtŠscCstd|ddƒS(NR(ii(tContinue(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyt
continue_stmtscCsZt|ƒdjo"ttdƒd|ddƒSnt|i|dƒd|ddƒS(NiR(ii(R+tReturntConstRRn(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytreturn_stmts"cCs&|i|dƒ}t|d|iƒS(NiR((RnR~R((RHRiRU((s0/usr/local/lib/python2.5/compiler/transformer.pyt
yield_stmt–scCsNt|ƒdjo|i|dƒ}n
tdƒ}t|d|ddƒS(NiR(ii(R+RnRŻRtYield(RHRiRI((s0/usr/local/lib/python2.5/compiler/transformer.pyt
yield_expršscCsŽt|ƒdjo|i|dƒ}nd}t|ƒdjo|i|dƒ}nd}t|ƒdjo|i|dƒ}nd}t|||d|ddƒS(NiiiR(ii(R+RnRtRaise(RHRitexpr3texpr2texpr1((s0/usr/local/lib/python2.5/compiler/transformer.pyt
raise_stmtĄscCs+t|ƒdjpt‚|i|dƒS(Nii(R+RoRn(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytimport_stmtąscCs%t|i|dƒd|ddƒS(NiR(ii(tImporttcom_dotted_as_names(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytimport_nameśscCsA|dddjpt‚d}x$||ddjo|d7}q%W|d}||dtijo!|i||ƒ}|d7}nd}||ddjpt‚||ddtijo%t|d
g|d|dd	ƒSnO||d||ddtij}t||i	|ƒ|d|dd	ƒSdS(Niitfromt.RVtimportRR(i(RN(
RoR1Rutcom_dotted_nameR6tSTARtFromRR9tcom_import_as_names(RHRitidxtleveltfromnameR`((s0/usr/local/lib/python2.5/compiler/transformer.pytimport_fromťs"
'cCsVg}x5tdt|ƒdƒD]}|i||dƒqWt|d|ddƒS(NiiR(i(R‹R+RtGlobal(RHRiR€Rk((s0/usr/local/lib/python2.5/compiler/transformer.pytglobal_stmtŃs
cCs•|i|dƒ}t|ƒdjoG|i|dƒ}t|ƒdjo|i|dƒ}qwd}nd}}t|||d|ddƒS(	NiiiiiR(ii(RnR+RtExec(RHRiRˇRśRľ((s0/usr/local/lib/python2.5/compiler/transformer.pyt	exec_stmtŘs

cCs^|i|dƒ}t|ƒdjo|i|dƒ}nd}t||d|ddƒS(NiiiR(ii(RnR+RtAssert(RHRiRˇRś((s0/usr/local/lib/python2.5/compiler/transformer.pytassert_stmtćs
cCs˝g}xetdt|ƒddƒD]G}|i||dƒ}|i||dƒ}|i||fƒq#Wt|ƒddjo|i|dƒ}nd}t||d|ddƒS(Niiiii˙˙˙˙R(i(R‹R+RnRRtIf(RHRittestsRkttestNodet	suiteNodetelseNode((s0/usr/local/lib/python2.5/compiler/transformer.pytif_stmtďscCst|i|dƒ}|i|dƒ}t|ƒdjo|i|dƒ}nd}t|||d|ddƒS(NiiiiR(ii(RnR+RtWhile(RHRiRĐtbodyNodeRŇ((s0/usr/local/lib/python2.5/compiler/transformer.pyt
while_stmtţscCs|i|dtƒ}|i|dƒ}|i|dƒ}t|ƒdjo|i|dƒ}nd}t||||d|ddƒS(NiiiiR(ii(R–RRnR+RtFor(RHRit
assignNodetlistNodeRŐRŇ((s0/usr/local/lib/python2.5/compiler/transformer.pytfor_stmtscCs
|i|ƒS(N(tcom_try_except_finally(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyttry_stmtscCs
|i|ƒS(N(tcom_with(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyt	with_stmtscCs
|i|ƒS(N(tcom_with_var(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytwith_var scCsqt|ƒdjo|i|dƒSng}x6|D].}|dtijo|i||ƒq5q5Wt|ƒS(Nii(R+RbR1RŠRfRh(RHRiRlR`((s0/usr/local/lib/python2.5/compiler/transformer.pyRS#scCs|it|ƒS(N(t
com_binarytTuple(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyttestlist3scCsct|ƒdjoC|ddtijo+|i|dƒ}|i||dƒSn|i|ƒS(Niii(R+R1tgen_forRntcom_generator_expressionRă(RHRittest((s0/usr/local/lib/python2.5/compiler/transformer.pyt
testlist_gexp=s+cCst|ƒdjo-|ddtijo|i|dƒSn|i|dƒ}t|ƒdjošt|ƒdjpt‚|dddjpt‚|dddjpt‚|i|dƒ}|i|dƒ}t|||d	|ddƒSn|S(
NiiitifitelseiiR((R+R1R]RnRotIfExp(RHRitthenRćtelse_((s0/usr/local/lib/python2.5/compiler/transformer.pyRćCs+"cCsPt|ƒdjo-|ddtijo|i|dƒSn|it|ƒS(Nii(R+R1R]RátOr(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytor_testQs+cCs|it|ƒS(N(RátAnd(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytand_testXscCsF|i|dƒ}t|ƒdjot|d|ddƒSn|S(Ni˙˙˙˙iR(i(RnR+tNot(RHRitresult((s0/usr/local/lib/python2.5/compiler/transformer.pytnot_test\sc	Cs|i|dƒ}t|ƒdjo|Sng}xĘtdt|ƒdƒD]°}||d}|d}|dtijoB|d}t|ƒdjo!|djo
d}q˝d}qĎnt|d}|dd}|i||i||ƒfƒqMWt||d|ƒS(	Niiiitnotsnot insis notR((RnR+R‹R6REt
_cmp_typesRtCompare(	RHRiR`tresultsRktnlRaRR(((s0/usr/local/lib/python2.5/compiler/transformer.pyt
comparisoncs$



$cCs|it|ƒS(N(RátBitor(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyRU„scCs|it|ƒS(N(RátBitxor(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytxor_exprˆscCs|it|ƒS(N(RátBitand(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytand_exprŒscCsć|i|dƒ}xĚtdt|ƒdƒD]˛}|i||ƒ}||ddtijo$t||gd|ddƒ}q,||ddtijo$t||gd|ddƒ}q,td||dd‚q,W|S(NiiiR(sunexpected token: %s(	RnR‹R+R6t	LEFTSHIFTt	LeftShiftRĄt
RightShiftR(RHRiR`Rktright((s0/usr/local/lib/python2.5/compiler/transformer.pyt
shift_exprs$$cCsć|i|dƒ}xĚtdt|ƒdƒD]˛}|i||ƒ}||ddtijo$t||gd|ddƒ}q,||ddtijo$t||gd|ddƒ}q,td||dd‚q,W|S(NiiiR(sunexpected token: %s(	RnR‹R+R6tPLUStAddtMINUStSubR(RHRiR`RkR((s0/usr/local/lib/python2.5/compiler/transformer.pyt
arith_exprs$$cCs|i|dƒ}xűtdt|ƒdƒD]á}|i||ƒ}||dd}|tijot||gƒ}n€|tijot||gƒ}nZ|tijot	||gƒ}n4|ti
jot||gƒ}ntd|‚|dd|_
q,W|S(Niiisunexpected token: %s(RnR‹R+R6RÁtMultSLASHtDivtPERCENTtModtDOUBLESLASHtFloorDivRR((RHRiR`RkRtt((s0/usr/local/lib/python2.5/compiler/transformer.pyttermŠs 
cCsł|d}|d}|i|dƒ|ddƒ}|tijot|d|dƒSnS|tijot|d|dƒSn+|tijot|d|dƒ}n|S(Nii˙˙˙˙iR(i(R”R6RtUnaryAddRtUnarySubtTILDEtInvert(RHRiteltRR`((s0/usr/local/lib/python2.5/compiler/transformer.pytfactorťs

!cCs–|i|dƒ}x|tdt|ƒƒD]e}||}|dtijo/t||i||dƒgd|dƒSn|i||ƒ}q)W|S(NiiR(i(RnR‹R+R6t
DOUBLESTARtPowertcom_apply_trailer(RHRiR`RkR((s0/usr/local/lib/python2.5/compiler/transformer.pytpowerČs
 cCs|i|dd|ƒS(Ni(RF(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pytatomŐscCsE|ddtijotdd|ddƒSn|i|dƒS(NiiR(i((R6R†RâRn(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR8ŘscCsE|ddtijotdd|ddƒSn|i|dƒS(NiiR(i((R6tRSQBtListtcom_list_constructor(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR:ÝscCsE|ddtijotdd|ddƒSn|i|dƒS(NiiR(i((R6tRBRACEtDictt
com_dictmaker(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR<âscCst|i|dƒƒS(Ni(t	BackquoteRn(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyR>çscCs,t|ddƒ}t|d|ddƒS(NiiR(i(RRŻ(RHRitk((s0/usr/local/lib/python2.5/compiler/transformer.pyR@ęscCsb|ioJ|idjot|dƒi|iƒ}ntd|i|fƒSnt|ƒSdS(Nsutf-8s
iso-8859-1s# coding: %s
%s(sutf-8s
iso-8859-1(RGtunicodetencodeR(RHtlit((s0/usr/local/lib/python2.5/compiler/transformer.pytdecode_literalďs

cCsFd}x%|D]}||i|dƒ7}q
Wt|d|ddƒS(NRViR(ii(R(RŻ(RHRiR$R`((s0/usr/local/lib/python2.5/compiler/transformer.pyRBús
cCs t|ddd|ddƒS(NiiR(i(tName(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyRDscCs|i|dS(Ni(R0(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyR”scCs|i|d|dƒS(Nii(R0(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyRnscGsttdƒƒS(N(R~RŻR(RHR-((s0/usr/local/lib/python2.5/compiler/transformer.pyR5scCsäg}g}d}d}xź|t|ƒjo¨||}|dtijp|dtijo×|dtijoO||d}|dtijo)|i|dƒ|tB}|d}qĂn|t|ƒjo\||d}|tijo||d}ntd|‚|i|dƒ|tB}nPn|i|i	|ƒƒ|d}|t|ƒjoD||dti
jo,|i|i||dƒƒ|d}nt|ƒo
td‚n|d}qW|||fS(Niiisunexpected token: %sis-non-default argument follows default argument(
R+R6RÁRRERRRRt	com_fpdefR•RntSyntaxError(RHRiR€RR‚RkR`R((s0/usr/local/lib/python2.5/compiler/transformer.pyR} s>
(


+

cCs9|ddtijo|i|dƒSn|ddS(Niii(R6R9t
com_fplist(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyR*RscCsut|ƒdjo|i|dƒSng}x:tdt|ƒdƒD] }|i|i||ƒƒqGWt|ƒS(Nii(R+R*R‹RR (RHR`RMRk((s0/usr/local/lib/python2.5/compiler/transformer.pyR,XscCs_d}xN|D]F}t|ƒtdƒjo'|ddjo||dd}q
q
W|d S(NRViiRži˙˙˙˙((R(RHR`RJRa((s0/usr/local/lib/python2.5/compiler/transformer.pyRŔas*cCsŞ|dtijpt‚|d}|i|ddƒ}t|ƒdjo|dfSn|dddjpt‚|ddtijpt‚||ddfS(Niitasi(R1tdotted_as_nameRoRŔR+RR6RE(RHR`tdot((s0/usr/local/lib/python2.5/compiler/transformer.pytcom_dotted_as_nameis
cCs||dtijpt‚|d}|i|dƒg}x:tdt|ƒdƒD] }|i|i||ƒƒqTW|S(Niii(R1tdotted_as_namesRoR0R‹R+R(RHR`R€Rk((s0/usr/local/lib/python2.5/compiler/transformer.pyRťss
cCsĹ|dtijpt‚|d}|ddtijpt‚t|ƒdjo|dddfSn|dddjp
t|‚|ddtijpt‚|dd|ddfS(NiiR-i(R1timport_as_nameRoR6RER+R(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pytcom_import_as_name{s
cCs||dtijpt‚|d}|i|dƒg}x:tdt|ƒdƒD] }|i|i||ƒƒqTW|S(Niii(R1timport_as_namesRoR3R‹R+R(RHR`R€Rk((s0/usr/local/lib/python2.5/compiler/transformer.pyRÅs
cCsGg}x:tdt|ƒdƒD] }|i|i||ƒƒqW|S(Nii(R‹R+RRn(RHR`R‰Rk((s0/usr/local/lib/python2.5/compiler/transformer.pyR‡s
c
	Cs|ddtijo9t|i|dƒ|i|dƒd|ddƒSng}d}d}x@tdt|ƒdƒD]&}||}|dtijo’t|ƒdjoJ|i|dƒ}t|ƒdjo|i	|dt
ƒ}qd}nd}}|i|||i||dƒfƒn|dtijo\|ddjo|i||dƒ}q˘|dd	jo|i||dƒ}q˘q|q|Wt|i|dƒ||d|ddƒ}	|ot|	|d|ddƒSn|	SdS(
NiiiiR(iiRétfinally(
R6REt
TryFinallyRnRR‹R+R1t
except_clauseR–RRt	TryExcept(
RHRitclausesRŇtfinallyNodeRkR`RˇRśt
try_except((s0/usr/local/lib/python2.5/compiler/transformer.pyRۓs8


+#cCs€|i|dƒ}|i|dƒ}|ddtijo
d}n|i|ddtƒ}t|||d|ddƒS(Nii˙˙˙˙iiR((RnR6R…RR–RtWith(RHRiRUtbodytvar((s0/usr/local/lib/python2.5/compiler/transformer.pyRÝźs
cCs|i|dƒS(Ni(Rn(RHRi((s0/usr/local/lib/python2.5/compiler/transformer.pyRßĆscCs#|dtijpt‚|dS(Nii(R1t	augassignRo(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyR™ĘscCsJ|i|ƒ}|ittttfjo|Sntd|ii‚dS(s…Return node suitable for lvalue of augmented assignment

        Names, slices, and attributes are the only allowable nodes.
        scan't assign to %sN(Rnt	__class__R)tSlicet	SubscriptRqR+R(RHR`R"((s0/usr/local/lib/python2.5/compiler/transformer.pyR˜ÎscCs|xu|d}|titititifjo5t|ƒdjo|i||ƒSn|d}q|tjo.t|ƒdjo
td‚n|d}q|ti	joŐ|ddti
jo
td‚nt|ƒdjo|i|dƒ}x^tdt|ƒdƒD]C}||}|dt
ijo
td‚n|i||ƒ}qW|i||d|ƒSn|d}q|ti
joŃ|dd}|t
ijo/|d}|dt
ijo
td‚qdqu|t
ijo?|d}|dt
ijo
td‚n|i||ƒSqu|t
ijo|i|d|ƒSqutd‚qtd	|‚qdS(
Niiiscan't assign to operatori˙˙˙˙scan't assign to ()scan't assign to []scan't assign to literalsbad assignment (%s)(R1texprlistRăt
testlist_safeRçR+tcom_assign_tuplet
_assign_typesR+RRRnR‹R6RRtcom_assign_trailerR9R†R;Rtcom_assign_listREtcom_assign_name(RHR`t	assigningRtprimaryRktch((s0/usr/local/lib/python2.5/compiler/transformer.pyR–ŘsN
%








cCs\g}x=tdt|ƒdƒD]#}|i|i|||ƒƒqWt|dt|ƒƒS(NiiR((R‹R+RR–tAssTupleR%(RHR`RJtassignsRk((s0/usr/local/lib/python2.5/compiler/transformer.pyREs
!cCsÎg}xŻtdt|ƒdƒD]•}|dt|ƒjo[||ddtijo
td‚n||ddtijpt||d‚n|i|i	|||ƒƒqWt
|dt|ƒƒS(Niiis"can't assign to list comprehensionR((R‹R+R1tlist_forR+R6R˘RoRR–tAssListR%(RHR`RJRNRk((s0/usr/local/lib/python2.5/compiler/transformer.pyRH
s
2!cCst|d|d|dƒS(NiR(i(tAssName(RHR`RJ((s0/usr/local/lib/python2.5/compiler/transformer.pyRIscCs’|dd}|tijo|i||d|ƒSn|tijo|i||d|ƒSn|tijo
td‚ntd|‚dS(Niiiscan't assign to function callsunknown trailer type: %s(R6Rptcom_assign_attrR;tcom_subscriptlistR9R+(RHRKR`RJR((s0/usr/local/lib/python2.5/compiler/transformer.pyRGs
cCst||d|d|dƒS(NiR(i˙˙˙˙(tAssAttr(RHRKR`RJ((s0/usr/local/lib/python2.5/compiler/transformer.pyRR!scCsĄt|ƒ}|djo%|d}|i|ƒ|dƒSng}xDtd|dƒD]0}||}|i|i|ƒ|dƒƒqWW||dt|ƒƒS(s=Compile 'NODE (OP NODE)*' into (type, [ node1, ..., nodeN ]).iiiR((R+R”R‹RR%(RHtconstructorRiR"RaR3Rk((s0/usr/local/lib/python2.5/compiler/transformer.pyRá$s


$cCsR|i|ƒ|dƒ}|dj	pt‚t|tƒo|Snt|gƒS(Ni(R”RRoR$Rh(RHR`Rň((s0/usr/local/lib/python2.5/compiler/transformer.pyRb0s
cCsb|i|ƒ|dƒ}|dj	pt‚t|tƒo|i|iƒn|i|ƒdS(Ni(R”RRoR$RhtextendR!R(RHRlR`Rň((s0/usr/local/lib/python2.5/compiler/transformer.pyRf7s
ROcCsČg}x¨tdt|ƒƒD]‘}||dtijo:t||ƒdjpt‚|i|d||ƒSn ||dtijoqn|i|i	||ƒƒqWt
|d|diƒS(NiiR((R‹R+R1RORotcom_list_comprehensionR6R˘RRnRR((RHRitvaluesRk((s0/usr/local/lib/python2.5/compiler/transformer.pyR@s
cCso|dd}g}xE|o=|dd}|djo|i|dtƒ}|i|dƒ}t||gƒ}|dd|_|i|ƒt|ƒdjo
d}qW|i|dƒ}q|djoq|i|dƒ}	t	|	d|ddƒ}
|i
i|
ƒt|ƒdjo
d}qW|i|dƒ}qtd	||f‚qWt||d|ƒS(
NiitforiiRčR(is,unexpected list comprehension element: %s %d(
R–RRntListCompForR(RR+Rt
com_list_itert
ListCompIftifsR+tListComp(RHRUR`R(tforsRRŘRŮtnewforRćtnewif((s0/usr/local/lib/python2.5/compiler/transformer.pyRWMs2




cCs#|dtijpt‚|dS(Nii(R1t	list_iterRo(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyR[pscCsZg}x:tdt|ƒdƒD] }|i|i||ƒƒqWt|d|diƒS(NiiR(i(R‹R+RRnRR((RHRiRXRk((s0/usr/local/lib/python2.5/compiler/transformer.pyRts
RäcCs|dd}g}xB|o:|dd}|djoŠ|i|dtƒ}|i|dƒ}t||gd|ddƒ}|i|ƒt|ƒdjo
d}qT|i|dƒ}q|djoq|i|dƒ}	t|	d|ddƒ}
|i	i|
ƒt|ƒdjo
d}qT|i|dƒ}qt
d	||f‚qWt|d
_t
t||ƒd|ƒS(NiiRYiR(iRčis.unexpected generator expression element: %s %di(R–RRnt
GenExprForRR+Rtcom_gen_itert	GenExprIfR]R+tTruet
is_outmosttGenExprtGenExprInner(RHRUR`R(R_RRŘtgenNodeR`RćRa((s0/usr/local/lib/python2.5/compiler/transformer.pyRĺ{s4





cCs#|dtijpt‚|dS(Nii(R1tgen_iterRo(RHR`((s0/usr/local/lib/python2.5/compiler/transformer.pyRdscCsug}xQtdt|ƒdƒD]7}|i|i||ƒ|i||dƒfƒqWt|d|ddiƒS(NiiiR(i(R‹R+RRnR!R((RHRiR3Rk((s0/usr/local/lib/python2.5/compiler/transformer.pyR"ĄscCsš|dd}|tijo|i||dƒSn|tijo|i||dƒSn|tijo|i||dtƒSntd|‚dS(Niiisunknown node type: %s(	R6R9RvRptcom_select_memberR;RSRR+(RHtprimaryNodeRiR((s0/usr/local/lib/python2.5/compiler/transformer.pyRŠscCs<|dtijo
td‚nt||dd|dƒS(Nismember must be a nameiR(i(R6RER+Rq(RHRmRi((s0/usr/local/lib/python2.5/compiler/transformer.pyRl´s
c

CsC|dtijot|gdt|ƒƒSng}d}t|ƒ}xŐtd|dƒD]ˇ}||}|dtijp|dtijoPn|i||ƒ\}}|djoHt	|t
ƒo8t|ƒdjo%|ddtijo
t
d‚n|i|ƒq\W|d}||jo&||dtijo|d}nd}	}
xĂ||joľ||}||d}|d}|dtijo-|	dj	o
t
d‚n|i|ƒ}	qa|dtijo-|
dj	o
t
d‚n|i|ƒ}
qat
d	|‚qaWt|||	|
dt|ƒƒS(
NiR(iiis&generator expression needs parenthesiss$already have the varargs indentifiers#already have the kwargs indentifiersunknown node type: %s(R6R†tCallFuncR%R+R‹RÁRtcom_argumentR$RhR1RäR+RR˘RRn(
RHRmRiR-tkwtlen_nodelistRkR`Rňt	star_nodet
dstar_nodettokRL((s0/usr/local/lib/python2.5/compiler/transformer.pyRvšsF
(+

%







cCsDt|ƒdjoI|ddtijo1|i|dƒ}d|i||dƒfSnt|ƒdjo/|o
td‚nd|i|dƒfSn|i|dƒ}|d}x6t|ƒdjo"|dtijo|d}qžW|dtijotd|d‚nt|d|d|dƒ}d|fS(Niiiis!non-keyword arg after keyword args#keyword can't be an expression (%s)R((	R+R1RäRnRĺR+R6REtKeyword(RHRiRpRćRňRaR`((s0/usr/local/lib/python2.5/compiler/transformer.pyRoäs +

'c	Csňt|ƒdjo€|d}|ddtijp+t|ƒdjo-|ddtijo/|ddtijo|i|||ƒSq“ng}x:tdt|ƒdƒD] }|i|i||ƒƒq˛Wt	|||dt
|ƒƒS(Niiii˙˙˙˙R((R+R6R…R1R’t	com_sliceR‹Rt
com_subscriptRBR%(RHRKRiRJtsubt
subscriptsRk((s0/usr/local/lib/python2.5/compiler/transformer.pyRSős
+cCsˆ|d}|d}|tijo#|ddtijotƒSn|tijpt|ƒdjo|i|ƒSn|i|ƒS(Niii(R6RptEllipsisR…R+tcom_sliceobjRn(RHR`RLR((s0/usr/local/lib/python2.5/compiler/transformer.pyRw	s

(#cCsEg}|ddtijo|itdƒƒd}n!|i|i|dƒƒd}|t|ƒjo@||dtijo(|i|i||ƒƒ|d}n|itdƒƒxkt	|t|ƒƒD]T}||}t|ƒdjo|itdƒƒq×|i|i|dƒƒq×Wt
|dt|ƒƒS(NiiiiR((R6R…RRŻRRnR+R1RćR‹tSliceobjR%(RHR`R3RktjRL((s0/usr/local/lib/python2.5/compiler/transformer.pyR{s"

+
cCsżd}}t|ƒdjoF|ddtijo|i|dƒ}q |i|dƒ}n>t|ƒdjo*|i|dƒ}|i|dƒ}nt||||dt|ƒƒS(NiiiiiR((RR+R6R…RnRAR%(RHRKR`RJtlowertupper((s0/usr/local/lib/python2.5/compiler/transformer.pyRv7s
c
CsĘ|djo|d}|d}n|tijoft|ƒdjo|i|dƒSnx3|D]+}|dtijo|i|ƒSqdqdWdSn|tijo>x3|D]+}|dtijo|i|ƒSq˛q˛WdSn|tijoS|ddti	jo3d}x"|D]}|t
|dƒ}qW|SndSn|tijp |tijp|tijo|i|dƒSn|t
jo(t|ƒdjo|i|dƒSndS(NiiRV(RR1RSR+RdRŠR[RR6RCRRŒt
small_stmtt
_doc_nodes(RHR`RaRxtsR((s0/usr/local/lib/python2.5/compiler/transformer.pyRdEs>

  N(€RRt__doc__RKRRRRRXRPRZR[R\RsRxR{R^R]told_lambdefR_RŠR€t	flow_stmtt
compound_stmtRŒRR|RŽRRuRR‘R’R“R R§R¨RŠRŤR­R°RąRłR¸RšRźRÇRÉRËRÍRÓRÖRÚRÜRŢRŕRSRăRDt	testlist1RCRçRćRîtold_testRđRóRůRURüRţRRRRRRR8R:R<R>R@R(RBRDR”RnR5R}R*R,RŔR0RťR3RĂR‡RŰRÝRßR™R˜R–RERHRIRGRRRáRbRfRR1RRWR[RĺRdR"RRlRvRoRSRwR{RvRRd(((s0/usr/local/lib/python2.5/compiler/transformer.pyR_sü							
						!																																
												!				
			
	
													2					
		
			)	
			
	,		
		
					
	#
		"
				+			
	$	t<t>s==s<=s>=s!=RąRłcCs|g}xo|D]g}t|tƒo|iti||ƒƒq
t|tƒo|i|ƒq
|it|ƒƒq
W|S(N(R$tintRt_namestgetR,t
debug_tree(RQR"R((s0/usr/local/lib/python2.5/compiler/transformer.pyRŽÉs(TRƒtcompiler.astRNR1R6tsyst
StandardErrorRtcompiler.constsRRRRRRR
RR%R/RR RăRDRćRîRđRóRůRURüRţRRRRRRtLESStGREATERtEQEQUALR•t	LESSEQUALtGREATEREQUALtNOTEQUALRőR^R_RŠR€R…RŒR†R§R¨RŠRŤR­R°R¸RšRÉRËRÍRÓRÖRÚRÜRŢRSRCRt_legal_node_typesRRRąRłRFRŒR2R3R$tvttok_nameRŽ(((s0/usr/local/lib/python2.5/compiler/transformer.pys<module>	sŘ
	
			
	˙˙˙˙˙

Man Man