[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.217.10.152: ~ $
�

1�Dg;)��R�ddlmZGd�de��ZGd�de��ZdZdZdS)	�)�Templatec�$�eZdZdd�Zdd�Zd�ZdS)�ASTCodeGenerator�
_c_ast.cfgc�\�||_d�|�|��D��|_dS)zN Initialize the code generator from a configuration
            file.
        c�4�g|]\}}t||����S�)�NodeCfg)�.0�name�contentss   �r/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pycparser/_ast_gen.py�
<listcomp>z-ASTCodeGenerator.__init__.<locals>.<listcomp>s<��F�F�F� ��x�!��x�0�0�F�F�F�N)�cfg_filename�
parse_cfgfile�node_cfg)�selfrs  r�__init__zASTCodeGenerator.__init__sC��)���F�F�$(�$6�$6�|�$D�$D�F�F�F��
�
�
rNc���tt���|j���}|tz
}|jD]}||���dzz
}�|�|��dS)z< Generates the code into file, an open file buffer.
        )rz

N)r�_PROLOGUE_COMMENT�
substituter�_PROLOGUE_CODEr�generate_source�write)r�file�srcrs    r�generatezASTCodeGenerator.generatesz���(�)�)�4�4��*�5�,�,��	�~����
�	7�	7�H��8�+�+�-�-��6�6�C�C��
�
�3�����rc	#�K�t|d��5}|D]�}|���}|r|�d��r�.|�d��}|�d��}|�d��}|dks||ks||krt	d|�d|�d	����|d
|�}||dz|�}|rd�|�d��D��ng}	||	fV���	d
d
d
��d
S#1swxYwYd
S)
ze Parse the configuration file and yield pairs of
            (name, contents) for each node.
        �r�#�:�[�]�zInvalid line in z:
�
Nc�6�g|]}|�����Sr	)�strip)r�vs  rrz2ASTCodeGenerator.parse_cfgfile.<locals>.<listcomp>6s ��=�=�=��1�7�7�9�9�=�=�=r�,)�openr(�
startswith�find�RuntimeError�split)
r�filename�f�line�colon_i�
lbracket_i�
rbracket_ir�val�vallists
          rrzASTCodeGenerator.parse_cfgfile%s}�����(�C�
 �
 �	$�A��

$�

$���z�z�|�|����t���s�3�3����)�)�C�.�.��!�Y�Y�s�^�^�
�!�Y�Y�s�^�^�
��Q�;�;�*��"7�"7�:��;S�;S�&�,�h�h�h�PT�PT�PT�'U�V�V�V��H�W�H�~���:��>�*�4�5��AD�L�=�=�c�i�i��n�n�=�=�=�=�"���G�m�#�#�#�#�

$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$�	$����	$�	$�	$�	$�	$�	$s�CC:�:C>�C>)r)N)�__name__�
__module__�__qualname__rrrr	rrrrsO������F�F�F�F�
�
�
�
�$�$�$�$�$rrc�6�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	dS)	r
z� Node configuration.

        name: node name
        contents: a list of contents - attributes and child nodes
        See comment at the top of the configuration file for details.
    c��||_g|_g|_g|_g|_|D]�}|�d��}|j�|��|�d��r|j�|���a|�d��r|j�|����|j�|����dS)N�*z**)r�all_entries�attr�child�	seq_child�rstrip�append�endswith)rrr
�entry�clean_entrys     rrzNodeCfg.__init__Bs�����	������	���
�����		(�		(�E��,�,�s�+�+�K���#�#�K�0�0�0��~�~�d�#�#�
(���%�%�k�2�2�2�2�����$�$�
(��
�!�!�+�.�.�.�.��	� � ��'�'�'�'�		(�		(rc���|���}|d|���zz
}|d|���zz
}|d|���zz
}|S)Nr&)�	_gen_init�
_gen_children�	_gen_iter�_gen_attr_names�rrs  rrzNodeCfg.generate_sourceTse���n�n�����t�d�(�(�*�*�*�*���t�d�n�n�&�&�&�&���t�d�*�*�,�,�,�,���
rc��d|jz}|jrId�|j��}d�d�|jD����}|dz
}d|z}nd}d}|d|zz
}|d	|zz
}|jd
gzD]}|d|�d|�d
�z
}�|S)Nzclass %s(Node):
z, c3�@K�|]}d�|��V��dS)z'{0}'N)�format)r�es  r�	<genexpr>z$NodeCfg._gen_init.<locals>.<genexpr>`s.����J�J�A�g�n�n�Q�/�/�J�J�J�J�J�Jrz, 'coord', '__weakref__'z(self, %s, coord=None)z'coord', '__weakref__'z(self, coord=None)z    __slots__ = (%s)
z    def __init__%s:
�coordz
        self.z = r&)rr>�join)rr�args�slots�arglistrs      rrHzNodeCfg._gen_init[s���!�D�I�-����	+��9�9�T�-�.�.�D��I�I�J�J��9I�J�J�J�J�J�E��/�/�E�.��5�G�G�,�E�*�G��'�%�/�/���&��0�0���$��y�0�	;�	;�D��C�t�t�t�T�T�T�:�:�C�C��
rc��d}|jrK|dz
}|jD]}|dt|���zz
}�|jD]}|dt|���zz
}�|dz
}n|dz
}|S)Nz    def children(self):
z        nodelist = []
zV        if self.%(child)s is not None: nodelist.append(("%(child)s", self.%(child)s))
�r@zu        for i, child in enumerate(self.%(child)s or []):
            nodelist.append(("%(child)s[%%d]" %% i, child))
z        return tuple(nodelist)
z        return ()
�r>r@�dictrA�rrr@rAs    rrIzNodeCfg._gen_childrenos���)����	)��,�,�C���
+�
+���H��5�)�)�)�+�+���
"�^�
/�
/�	��T��9�-�-�-�/�/���

�5�5�C�C��(�(�C��
rc���d}|jrT|jD]}|dt|���zz
}�|jD]}|dt|���zz
}�|js|js|dz
}n|dz
}|S)Nz    def __iter__(self):
zH        if self.%(child)s is not None:
            yield self.%(child)s
rXzE        for child in (self.%(child)s or []):
            yield child
z        return
        yield
rYr[s    rrJzNodeCfg._gen_iter�s���)����	#���
P�
P���9�=A��=N�=N�=N�P�P���"�^�
K�
K�	��0�48�y�4I�4I�4I�K�K����J�
'�$�.�
'��&�'���

�"�
#�C��
rc�Z�dd�d�|jD����zdz}|S)Nz    attr_names = (�c3� K�|]	}d|zV��
dS)z%r, Nr	)r�nms  rrQz*NodeCfg._gen_attr_names.<locals>.<genexpr>�s&����,M�,M�R�V�b�[�,M�,M�,M�,M�,M�,Mr�))rSr?rLs  rrKzNodeCfg._gen_attr_names�s4��"�R�W�W�,M�,M�4�9�,M�,M�,M�%M�%M�M�PS�S���
rN)
r8r9r:�__doc__rrrHrIrJrKr	rrr
r
:sx��������(�(�(�$������(���0���6����rr
a�#-----------------------------------------------------------------
# ** ATTENTION **
# This code was automatically generated from the file:
# $cfg_filename
#
# Do not modify it directly. Modify the configuration file and
# run the generator again.
# ** ** *** ** **
#
# pycparser: c_ast.py
#
# AST Node classes.
#
# Eli Bendersky [https://eli.thegreenplace.net/]
# License: BSD
#-----------------------------------------------------------------

a3
import sys

def _repr(obj):
    """
    Get the representation of an object, with dedicated pprint-like format for lists.
    """
    if isinstance(obj, list):
        return '[' + (',\n '.join((_repr(e).replace('\n', '\n ') for e in obj))) + '\n]'
    else:
        return repr(obj)

class Node(object):
    __slots__ = ()
    """ Abstract base class for AST nodes.
    """
    def __repr__(self):
        """ Generates a python representation of the current node
        """
        result = self.__class__.__name__ + '('

        indent = ''
        separator = ''
        for name in self.__slots__[:-2]:
            result += separator
            result += indent
            result += name + '=' + (_repr(getattr(self, name)).replace('\n', '\n  ' + (' ' * (len(name) + len(self.__class__.__name__)))))

            separator = ','
            indent = '\n ' + (' ' * len(self.__class__.__name__))

        result += indent + ')'

        return result

    def children(self):
        """ A sequence of all children that are Nodes
        """
        pass

    def show(self, buf=sys.stdout, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None):
        """ 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.
        """
        lead = ' ' * offset
        if nodenames and _my_node_name is not None:
            buf.write(lead + self.__class__.__name__+ ' <' + _my_node_name + '>: ')
        else:
            buf.write(lead + self.__class__.__name__+ ': ')

        if self.attr_names:
            if attrnames:
                nvlist = [(n, getattr(self,n)) for n in self.attr_names]
                attrstr = ', '.join('%s=%s' % nv for nv in nvlist)
            else:
                vlist = [getattr(self, n) for n in self.attr_names]
                attrstr = ', '.join('%s' % v for v in vlist)
            buf.write(attrstr)

        if showcoord:
            buf.write(' (at %s)' % self.coord)
        buf.write('\n')

        for (child_name, child) in self.children():
            child.show(
                buf,
                offset=offset + 2,
                attrnames=attrnames,
                nodenames=nodenames,
                showcoord=showcoord,
                _my_node_name=child_name)


class NodeVisitor(object):
    """ 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)
    """

    _method_cache = None

    def visit(self, node):
        """ Visit a node.
        """

        if self._method_cache is None:
            self._method_cache = {}

        visitor = self._method_cache.get(node.__class__.__name__, None)
        if visitor is None:
            method = 'visit_' + node.__class__.__name__
            visitor = getattr(self, method, self.generic_visit)
            self._method_cache[node.__class__.__name__] = visitor

        return visitor(node)

    def generic_visit(self, node):
        """ Called if no explicit visitor function exists for a
            node. Implements preorder visiting of the node.
        """
        for c in node:
            self.visit(c)

N)�stringr�objectrr
rrr	rr�<module>res���������'$�'$�'$�'$�'$�v�'$�'$�'$�Tj�j�j�j�j�f�j�j�j�\��(U���r

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 3.19 KB 0644
_ast_gen.cpython-311.pyc File 13.17 KB 0644
_build_tables.cpython-311.pyc File 823 B 0644
ast_transforms.cpython-311.pyc File 5.45 KB 0644
c_ast.cpython-311.pyc File 52.05 KB 0644
c_generator.cpython-311.pyc File 30.27 KB 0644
c_lexer.cpython-311.pyc File 18.21 KB 0644
c_parser.cpython-311.pyc File 91.36 KB 0644
lextab.cpython-311.pyc File 6.84 KB 0644
plyparser.cpython-311.pyc File 6.38 KB 0644
yacctab.cpython-311.pyc File 188.81 KB 0644