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/visitor.pyc

³ò
h”Rc@s[ddklZdd	d„ƒYZdefd„ƒYZeZddd„Zd„ZdS(
iÿÿÿÿ(tastt
ASTVisitorcBs8eZdZdZd„Zd„Zd„Zd„ZRS(sPerforms a depth-first walk of the AST

    The ASTVisitor will walk the AST, performing either a preorder or
    postorder traversal depending on which method is called.

    methods:
    preorder(tree, visitor)
    postorder(tree, visitor)
        tree: an instance of ast.Node
        visitor: an instance with visitXXX methods

    The ASTVisitor is responsible for walking over the tree in the
    correct order.  For each node, it checks the visitor argument for
    a method named 'visitNodeType' where NodeType is the name of the
    node's class, e.g. Class.  If the method exists, it is called
    with the node as its sole argument.

    The visitor method for a particular node type can control how
    child nodes are visited during a preorder walk.  (It can't control
    the order during a postorder walk, because it is called _after_
    the walk has occurred.)  The ASTVisitor modifies the visitor
    argument by adding a visit method to the visitor; this method can
    be used to visit a child node of arbitrary type.
    icCsd|_h|_dS(N(tNonetnodet_cache(tself((s,/usr/local/lib/python2.5/compiler/visitor.pyt__init__"s	cGs+x$|iƒD]}|i||Œq
WdS(N(t
getChildNodestdispatch(RRtargstchild((s,/usr/local/lib/python2.5/compiler/visitor.pytdefault&s
cGsw||_|i}|ii|dƒ}|djo6|i}t|id||iƒ}||i|<n|||ŒS(Ntvisit(	Rt	__class__RtgetRt__name__tgetattrtvisitorR(RRR	tklasstmetht	className((s,/usr/local/lib/python2.5/compiler/visitor.pyR*s		
	cGs)||_|i|_|i||ŒdS(s&Do preorder walk of tree using visitorN(RRR(RttreeRR	((s,/usr/local/lib/python2.5/compiler/visitor.pytpreorder;s	(Rt
__module__t__doc__tVERBOSERRRR(((s,/usr/local/lib/python2.5/compiler/visitor.pyRs			tExampleASTVisitorcBseZdZhZd„ZRS(sÛPrints examples of the nodes that aren't visited

    This visitor-driver is only useful for development, when it's
    helpful to develop a visitor incrementally, and get feedback on what
    you still have to do.
    cGs[||_|ii|idƒ}|ii}|djo-t|id|dƒ}||i|i<n|idjo"dG|G|o
|ipdGHn|o|||Œn§|idjo–|i}|i	i
|ƒpf||i	|<H|iGH|GHxCt|ƒD]5}|ddjodGd|Gt||ƒGHqqWHn|i||ŒSndS(	NRiiRtt_s	s%-12.12s(
RRRR
RRRRRtexamplesthas_keytdirR(RRR	RRRtattr((s,/usr/local/lib/python2.5/compiler/visitor.pyRJs.	
"	

"(RRRRR(((s,/usr/local/lib/python2.5/compiler/visitor.pyRAscCsK|djo
tƒ}n|dj	o
||_n|i||ƒ|iS(N(Rt_walkerRRR(RRtwalkertverbose((s,/usr/local/lib/python2.5/compiler/visitor.pytwalkes



cCsR|iGHxCt|ƒD]5}|ddjodGd|Gt||ƒGHqqWdS(NiRs	s%-10.10s(R
RR(RR ((s,/usr/local/lib/python2.5/compiler/visitor.pytdumpNodems

N((tcompilerRRRR!RR$R%(((s,/usr/local/lib/python2.5/compiler/visitor.pys<module>s
;#

Man Man