403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.217.162.18
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib/python3.7/site-packages/pycparser/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib/python3.7/site-packages/pycparser/__pycache__/c_ast.cpython-37.pyc
B

�>�`([�@sddlZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZGdd�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)e�ZGd*d+�d+e�ZGd,d-�d-e�ZGd.d/�d/e�ZGd0d1�d1e�ZGd2d3�d3e�ZGd4d5�d5e�ZGd6d7�d7e�ZGd8d9�d9e�ZGd:d;�d;e�ZGd<d=�d=e�ZGd>d?�d?e�Z Gd@dA�dAe�Z!GdBdC�dCe�Z"GdDdE�dEe�Z#GdFdG�dGe�Z$GdHdI�dIe�Z%GdJdK�dKe�Z&GdLdM�dMe�Z'GdNdO�dOe�Z(GdPdQ�dQe�Z)GdRdS�dSe�Z*GdTdU�dUe�Z+GdVdW�dWe�Z,GdXdY�dYe�Z-GdZd[�d[e�Z.Gd\d]�d]e�Z/Gd^d_�d_e�Z0Gd`da�dae�Z1dS)b�Nc@s0eZdZdZdd�Zejdddddfdd�ZdS)	�Node�cCsdS)z3 A sequence of all children that are Nodes
        Nr)�selfrr�../pycparser/c_ast.py�childrensz
Node.childrenrFNc
	sd|}|r4|dk	r4|�|�jjd|d�n|�|�jjd��jr�|r~�fdd��jD�}d�d	d
�|D��}	n(�fdd��jD�}
d�dd
�|
D��}	|�|	�|r�|�d
�j�|�d�x.���D]"\}}|j||d||||d�q�WdS)a� Pretty print the Node and all its attributes and
            children (recursively) to a buffer.

            buf:
                Open IO buffer into which the Node is printed.

            offset:
                Initial offset (amount of leading spaces)

            attrnames:
                True if you want to see the attribute names in
                name=value pairs. False to only see the values.

            nodenames:
                True if you want to see the actual node names
                within their parents.

            showcoord:
                Do you want the coordinates of each Node to be
                displayed.
        � Nz <z>: z: csg|]}|t�|�f�qSr)�getattr)�.0�n)rrr�
<listcomp>=szNode.show.<locals>.<listcomp>z, css|]}d|VqdS)z%s=%sNr)r	Znvrrr�	<genexpr>>szNode.show.<locals>.<genexpr>csg|]}t�|��qSr)r)r	r
)rrrr@scss|]}d|VqdS)z%sNr)r	�vrrrrAsz (at %s)�
�)�offset�	attrnames�	nodenames�	showcoord�
_my_node_name)�write�	__class__�__name__�
attr_names�join�coordr�show)
rZbufrrrrrZleadZnvlistZattrstrZvlistZ
child_name�childr)rrrs, 

z	Node.show)r�
__module__�__qualname__�	__slots__r�sys�stdoutrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�NodeVisitora- A base NodeVisitor class for visiting c_ast nodes.
        Subclass it and define your own visit_XXX methods, where
        XXX is the class name you want to visit with these
        methods.

        For example:

        class ConstantVisitor(NodeVisitor):
            def __init__(self):
                self.values = []

            def visit_Constant(self, node):
                self.values.append(node.value)

        Creates a list of values of all the constant nodes
        encountered below the given node. To use it:

        cv = ConstantVisitor()
        cv.visit(node)

        Notes:

        *   generic_visit() will be called for AST nodes for which
            no visit_XXX method was defined.
        *   The children of nodes for which a visit_XXX was
            defined will not be visited - if you need this, call
            generic_visit() on the node.
            You can use:
                NodeVisitor.generic_visit(self, node)
        *   Modeled after Python's own AST visiting facilities
            (the ast module of Python 3.0)
    cCs"d|jj}t|||j�}||�S)z Visit a node.
        Zvisit_)rrr�
generic_visit)r�node�methodZvisitorrrr�visitsszNodeVisitor.visitcCs$x|��D]\}}|�|�q
WdS)zy Called if no explicit visitor function exists for a
            node. Implements preorder visiting of the node.
        N)rr&)rr$Zc_name�crrrr#zszNodeVisitor.generic_visitN)rrr�__doc__r&r#rrrrr"Rs r"c@s&eZdZdZddd�Zdd�ZdZdS)	�	ArrayDecl)�type�dim�	dim_qualsr�__weakref__NcCs||_||_||_||_dS)N)r*r+r,r)rr*r+r,rrrr�__init__�szArrayDecl.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr*r+)r*�appendr+�tuple)r�nodelistrrrr�s

zArrayDecl.children)r,)N)rrrrr.rrrrrrr)�s
r)c@s&eZdZdZddd�Zdd�ZdZdS)	�ArrayRef)�name�	subscriptrr-NcCs||_||_||_dS)N)r3r4r)rr3r4rrrrr.�szArrayRef.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr3r4)r3r/r4r0)rr1rrrr�s

zArrayRef.childrenr)N)rrrrr.rrrrrrr2�s
r2c@s&eZdZdZddd�Zdd�ZdZdS)	�
Assignment)�op�lvalue�rvaluerr-NcCs||_||_||_||_dS)N)r6r7r8r)rr6r7r8rrrrr.�szAssignment.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr7r8)r7r/r8r0)rr1rrrr�s

zAssignment.children)r6)N)rrrrr.rrrrrrr5�s
r5c@s&eZdZdZddd�Zdd�ZdZdS)	�BinaryOp)r6�left�rightrr-NcCs||_||_||_||_dS)N)r6r:r;r)rr6r:r;rrrrr.�szBinaryOp.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr:r;)r:r/r;r0)rr1rrrr�s

zBinaryOp.children)r6)N)rrrrr.rrrrrrr9�s
r9c@s&eZdZdZddd�Zdd�ZdZdS)	�Break)rr-NcCs
||_dS)N)r)rrrrrr.�szBreak.__init__cCsdS)Nrr)rrrrr�szBreak.childrenr)N)rrrrr.rrrrrrr<�s
r<c@s&eZdZdZddd�Zdd�ZdZdS)	�Case)�expr�stmtsrr-NcCs||_||_||_dS)N)r>r?r)rr>r?rrrrr.�sz
Case.__init__cCsTg}|jdk	r|�d|jf�x,t|jp*g�D]\}}|�d||f�q.Wt|�S)Nr>z	stmts[%d])r>r/�	enumerater?r0)rr1�irrrrr�s
z
Case.childrenr)N)rrrrr.rrrrrrr=�s
r=c@s&eZdZdZddd�Zdd�ZdZdS)	�Cast)�to_typer>rr-NcCs||_||_||_dS)N)rCr>r)rrCr>rrrrr.�sz
Cast.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)NrCr>)rCr/r>r0)rr1rrrr�s

z
Cast.childrenr)N)rrrrr.rrrrrrrB�s
rBc@s&eZdZdZddd�Zdd�ZdZdS)	�Compound)�block_itemsrr-NcCs||_||_dS)N)rEr)rrErrrrr.�szCompound.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nzblock_items[%d])r@rEr/r0)rr1rArrrrr�szCompound.childrenr)N)rrrrr.rrrrrrrD�s
rDc@s&eZdZdZddd�Zdd�ZdZdS)	�CompoundLiteral)r*�initrr-NcCs||_||_||_dS)N)r*rGr)rr*rGrrrrr.�szCompoundLiteral.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr*rG)r*r/rGr0)rr1rrrr�s

zCompoundLiteral.childrenr)N)rrrrr.rrrrrrrF�s
rFc@s&eZdZdZddd�Zdd�ZdZdS)	�Constant)r*�valuerr-NcCs||_||_||_dS)N)r*rIr)rr*rIrrrrr.	szConstant.__init__cCsg}t|�S)N)r0)rr1rrrrszConstant.children)r*rI)N)rrrrr.rrrrrrrHs
rHc@s&eZdZdZddd�Zdd�ZdZdS)	�Continue)rr-NcCs
||_dS)N)r)rrrrrr.szContinue.__init__cCsdS)Nrr)rrrrrszContinue.childrenr)N)rrrrr.rrrrrrrJs
rJc@s&eZdZdZddd�Zdd�ZdZdS)	�Decl)	r3�quals�storage�funcspecr*rG�bitsizerr-Nc		Cs4||_||_||_||_||_||_||_||_dS)N)r3rLrMrNr*rGrOr)	rr3rLrMrNr*rGrOrrrrr. sz
Decl.__init__cCsZg}|jdk	r|�d|jf�|jdk	r8|�d|jf�|jdk	rR|�d|jf�t|�S)Nr*rGrO)r*r/rGrOr0)rr1rrrr*s


z
Decl.children)r3rLrMrN)N)rrrrr.rrrrrrrKs

rKc@s&eZdZdZddd�Zdd�ZdZdS)	�DeclList)�declsrr-NcCs||_||_dS)N)rQr)rrQrrrrr.5szDeclList.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	decls[%d])r@rQr/r0)rr1rArrrrr9szDeclList.childrenr)N)rrrrr.rrrrrrrP3s
rPc@s&eZdZdZddd�Zdd�ZdZdS)	�Default)r?rr-NcCs||_||_dS)N)r?r)rr?rrrrr.CszDefault.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	stmts[%d])r@r?r/r0)rr1rArrrrrGszDefault.childrenr)N)rrrrr.rrrrrrrRAs
rRc@s&eZdZdZddd�Zdd�ZdZdS)	�DoWhile)�cond�stmtrr-NcCs||_||_||_dS)N)rTrUr)rrTrUrrrrr.QszDoWhile.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)NrTrU)rTr/rUr0)rr1rrrrVs

zDoWhile.childrenr)N)rrrrr.rrrrrrrSOs
rSc@s&eZdZdZddd�Zdd�ZdZdS)	�
EllipsisParam)rr-NcCs
||_dS)N)r)rrrrrr.`szEllipsisParam.__init__cCsdS)Nrr)rrrrrcszEllipsisParam.childrenr)N)rrrrr.rrrrrrrV^s
rVc@s&eZdZdZddd�Zdd�ZdZdS)	�EmptyStatement)rr-NcCs
||_dS)N)r)rrrrrr.jszEmptyStatement.__init__cCsdS)Nrr)rrrrrmszEmptyStatement.childrenr)N)rrrrr.rrrrrrrWhs
rWc@s&eZdZdZddd�Zdd�ZdZdS)	�Enum)r3�valuesrr-NcCs||_||_||_dS)N)r3rYr)rr3rYrrrrr.tsz
Enum.__init__cCs&g}|jdk	r|�d|jf�t|�S)NrY)rYr/r0)rr1rrrrys
z
Enum.children)r3)N)rrrrr.rrrrrrrXrs
rXc@s&eZdZdZddd�Zdd�ZdZdS)	�
Enumerator)r3rIrr-NcCs||_||_||_dS)N)r3rIr)rr3rIrrrrr.�szEnumerator.__init__cCs&g}|jdk	r|�d|jf�t|�S)NrI)rIr/r0)rr1rrrr�s
zEnumerator.children)r3)N)rrrrr.rrrrrrrZ�s
rZc@s&eZdZdZddd�Zdd�ZdZdS)	�EnumeratorList)�enumeratorsrr-NcCs||_||_dS)N)r\r)rr\rrrrr.�szEnumeratorList.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nzenumerators[%d])r@r\r/r0)rr1rArrrrr�szEnumeratorList.childrenr)N)rrrrr.rrrrrrr[�s
r[c@s&eZdZdZddd�Zdd�ZdZdS)	�ExprList)�exprsrr-NcCs||_||_dS)N)r^r)rr^rrrrr.�szExprList.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	exprs[%d])r@r^r/r0)rr1rArrrrr�szExprList.childrenr)N)rrrrr.rrrrrrr]�s
r]c@s&eZdZdZddd�Zdd�ZdZdS)	�FileAST)�extrr-NcCs||_||_dS)N)r`r)rr`rrrrr.�szFileAST.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nzext[%d])r@r`r/r0)rr1rArrrrr�szFileAST.childrenr)N)rrrrr.rrrrrrr_�s
r_c@s&eZdZdZddd�Zdd�ZdZdS)	�For)rGrT�nextrUrr-NcCs"||_||_||_||_||_dS)N)rGrTrbrUr)rrGrTrbrUrrrrr.�s
zFor.__init__cCstg}|jdk	r|�d|jf�|jdk	r8|�d|jf�|jdk	rR|�d|jf�|jdk	rl|�d|jf�t|�S)NrGrTrbrU)rGr/rTrbrUr0)rr1rrrr�s



zFor.childrenr)N)rrrrr.rrrrrrra�s
rac@s&eZdZdZddd�Zdd�ZdZdS)	�FuncCall)r3�argsrr-NcCs||_||_||_dS)N)r3rdr)rr3rdrrrrr.�szFuncCall.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr3rd)r3r/rdr0)rr1rrrr�s

zFuncCall.childrenr)N)rrrrr.rrrrrrrc�s
rcc@s&eZdZdZddd�Zdd�ZdZdS)	�FuncDecl)rdr*rr-NcCs||_||_||_dS)N)rdr*r)rrdr*rrrrr.�szFuncDecl.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nrdr*)rdr/r*r0)rr1rrrr�s

zFuncDecl.childrenr)N)rrrrr.rrrrrrre�s
rec@s&eZdZdZddd�Zdd�ZdZdS)	�FuncDef)�decl�param_decls�bodyrr-NcCs||_||_||_||_dS)N)rgrhrir)rrgrhrirrrrr.�szFuncDef.__init__cCsng}|jdk	r|�d|jf�|jdk	r8|�d|jf�x,t|jpDg�D]\}}|�d||f�qHWt|�S)Nrgrizparam_decls[%d])rgr/rir@rhr0)rr1rArrrrr�s

zFuncDef.childrenr)N)rrrrr.rrrrrrrf�s
rfc@s&eZdZdZddd�Zdd�ZdZdS)	�Goto)r3rr-NcCs||_||_dS)N)r3r)rr3rrrrr.�sz
Goto.__init__cCsg}t|�S)N)r0)rr1rrrrsz
Goto.children)r3)N)rrrrr.rrrrrrrj�s
rjc@s&eZdZdZddd�Zdd�ZdZdS)	�ID)r3rr-NcCs||_||_dS)N)r3r)rr3rrrrr.	szID.__init__cCsg}t|�S)N)r0)rr1rrrr
szID.children)r3)N)rrrrr.rrrrrrrks
rkc@s&eZdZdZddd�Zdd�ZdZdS)	�IdentifierType)�namesrr-NcCs||_||_dS)N)rmr)rrmrrrrr.szIdentifierType.__init__cCsg}t|�S)N)r0)rr1rrrrszIdentifierType.children)rm)N)rrrrr.rrrrrrrls
rlc@s&eZdZdZddd�Zdd�ZdZdS)	�If)rT�iftrue�iffalserr-NcCs||_||_||_||_dS)N)rTrorpr)rrTrorprrrrr.!szIf.__init__cCsZg}|jdk	r|�d|jf�|jdk	r8|�d|jf�|jdk	rR|�d|jf�t|�S)NrTrorp)rTr/rorpr0)rr1rrrr's


zIf.childrenr)N)rrrrr.rrrrrrrns
rnc@s&eZdZdZddd�Zdd�ZdZdS)	�InitList)r^rr-NcCs||_||_dS)N)r^r)rr^rrrrr.2szInitList.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	exprs[%d])r@r^r/r0)rr1rArrrrr6szInitList.childrenr)N)rrrrr.rrrrrrrq0s
rqc@s&eZdZdZddd�Zdd�ZdZdS)	�Label)r3rUrr-NcCs||_||_||_dS)N)r3rUr)rr3rUrrrrr.@szLabel.__init__cCs&g}|jdk	r|�d|jf�t|�S)NrU)rUr/r0)rr1rrrrEs
zLabel.children)r3)N)rrrrr.rrrrrrrr>s
rrc@s&eZdZdZddd�Zdd�ZdZdS)	�NamedInitializer)r3r>rr-NcCs||_||_||_dS)N)r3r>r)rr3r>rrrrr.NszNamedInitializer.__init__cCsTg}|jdk	r|�d|jf�x,t|jp*g�D]\}}|�d||f�q.Wt|�S)Nr>zname[%d])r>r/r@r3r0)rr1rArrrrrSs
zNamedInitializer.childrenr)N)rrrrr.rrrrrrrsLs
rsc@s&eZdZdZddd�Zdd�ZdZdS)	�	ParamList)�paramsrr-NcCs||_||_dS)N)rur)rrurrrrr.^szParamList.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz
params[%d])r@rur/r0)rr1rArrrrrbszParamList.childrenr)N)rrrrr.rrrrrrrt\s
rtc@s&eZdZdZddd�Zdd�ZdZdS)	�PtrDecl)rLr*rr-NcCs||_||_||_dS)N)rLr*r)rrLr*rrrrr.lszPtrDecl.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr*)r*r/r0)rr1rrrrqs
zPtrDecl.children)rL)N)rrrrr.rrrrrrrvjs
rvc@s&eZdZdZddd�Zdd�ZdZdS)	�Return)r>rr-NcCs||_||_dS)N)r>r)rr>rrrrr.zszReturn.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr>)r>r/r0)rr1rrrr~s
zReturn.childrenr)N)rrrrr.rrrrrrrwxs
rwc@s&eZdZdZddd�Zdd�ZdZdS)	�Struct)r3rQrr-NcCs||_||_||_dS)N)r3rQr)rr3rQrrrrr.�szStruct.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	decls[%d])r@rQr/r0)rr1rArrrrr�szStruct.children)r3)N)rrrrr.rrrrrrrx�s
rxc@s&eZdZdZddd�Zdd�ZdZdS)	�	StructRef)r3r*�fieldrr-NcCs||_||_||_||_dS)N)r3r*rzr)rr3r*rzrrrrr.�szStructRef.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)Nr3rz)r3r/rzr0)rr1rrrr�s

zStructRef.children)r*)N)rrrrr.rrrrrrry�s
ryc@s&eZdZdZddd�Zdd�ZdZdS)	�Switch)rTrUrr-NcCs||_||_||_dS)N)rTrUr)rrTrUrrrrr.�szSwitch.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)NrTrU)rTr/rUr0)rr1rrrr�s

zSwitch.childrenr)N)rrrrr.rrrrrrr{�s
r{c@s&eZdZdZddd�Zdd�ZdZdS)	�	TernaryOp)rTrorprr-NcCs||_||_||_||_dS)N)rTrorpr)rrTrorprrrrr.�szTernaryOp.__init__cCsZg}|jdk	r|�d|jf�|jdk	r8|�d|jf�|jdk	rR|�d|jf�t|�S)NrTrorp)rTr/rorpr0)rr1rrrr�s


zTernaryOp.childrenr)N)rrrrr.rrrrrrr|�s
r|c@s&eZdZdZddd�Zdd�ZdZdS)	�TypeDecl)�declnamerLr*rr-NcCs||_||_||_||_dS)N)r~rLr*r)rr~rLr*rrrrr.�szTypeDecl.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr*)r*r/r0)rr1rrrr�s
zTypeDecl.children)r~rL)N)rrrrr.rrrrrrr}�s
r}c@s&eZdZdZddd�Zdd�ZdZdS)	�Typedef)r3rLrMr*rr-NcCs"||_||_||_||_||_dS)N)r3rLrMr*r)rr3rLrMr*rrrrr.�s
zTypedef.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr*)r*r/r0)rr1rrrr�s
zTypedef.children)r3rLrM)N)rrrrr.rrrrrrr�s
rc@s&eZdZdZddd�Zdd�ZdZdS)	�Typename)r3rLr*rr-NcCs||_||_||_||_dS)N)r3rLr*r)rr3rLr*rrrrr.�szTypename.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr*)r*r/r0)rr1rrrr�s
zTypename.children)r3rL)N)rrrrr.rrrrrrr��s
r�c@s&eZdZdZddd�Zdd�ZdZdS)	�UnaryOp)r6r>rr-NcCs||_||_||_dS)N)r6r>r)rr6r>rrrrr.�szUnaryOp.__init__cCs&g}|jdk	r|�d|jf�t|�S)Nr>)r>r/r0)rr1rrrr�s
zUnaryOp.children)r6)N)rrrrr.rrrrrrr��s
r�c@s&eZdZdZddd�Zdd�ZdZdS)	�Union)r3rQrr-NcCs||_||_||_dS)N)r3rQr)rr3rQrrrrr.szUnion.__init__cCs:g}x,t|jpg�D]\}}|�d||f�qWt|�S)Nz	decls[%d])r@rQr/r0)rr1rArrrrrszUnion.children)r3)N)rrrrr.rrrrrrr�s
r�c@s&eZdZdZddd�Zdd�ZdZdS)	�While)rTrUrr-NcCs||_||_||_dS)N)rTrUr)rrTrUrrrrr.szWhile.__init__cCs@g}|jdk	r|�d|jf�|jdk	r8|�d|jf�t|�S)NrTrU)rTr/rUr0)rr1rrrrs

zWhile.childrenr)N)rrrrr.rrrrrrr�s
r�)2r �objectrr"r)r2r5r9r<r=rBrDrFrHrJrKrPrRrSrVrWrXrZr[r]r_rarcrerfrjrkrlrnrqrrrsrtrvrwrxryr{r|r}rr�r�r�r�rrrr�<module>s`<0







Youez - 2016 - github.com/yon3zu
LinuXploit