Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/parse.cpython-311.opt-2.pyc
�

�,d���L�	ddlmZGd�de��ZGd�de��ZdS)�)�tokenc��eZdZ	d�Zd�ZdS)�
ParseErrorc
��t�||�d|�d|�d|����||_||_||_||_dS)Nz: type=z, value=z
, context=)�	Exception�__init__�msg�type�value�context)�selfr	r
rrs     �:/opt/alt/python311/lib64/python3.11/lib2to3/pgen2/parse.pyrzParseError.__init__sX�����4��C�C����u�u�u�g�g�"7�	8�	8�	8������	���
������c�T�t|��|j|j|j|jffS�N)r
r	rr)r
s r�
__reduce__zParseError.__reduce__s$���D�z�z�D�H�d�i���T�\�J�J�JrN)�__name__�
__module__�__qualname__rr�rrrrs:������2����K�K�K�K�Krrc�>�eZdZ	d	d�Zd	d�Zd�Zd�Zd�Zd�Zd�Z	dS)
�ParserNc�*�	||_|pd�|_dS)Nc��|Srr)�grammar�nodes  r�<lambda>z!Parser.__init__.<locals>.<lambda>Zs���r)r�convert)r
rrs   rrzParser.__init__<s$��	�8����>�#=�#=����rc��	|�|jj}|ddgf}|jj|d|f}|g|_d|_t��|_dS)N�)r�start�dfas�stack�rootnode�set�
used_names)r
r!�newnode�
stackentrys    r�setupzParser.setup\s]��	��=��L�&�E��$��b�)���l�'��.��7�;�
� �\��
���
��%�%����rc��	|�|||��}	|jd\}}}|\}}	||}
|
D]�\}}|jj|\}
}||kro|�||||��|}||d|fgkrC|���|jsdS|jd\}}}|\}}	||d|fgk�CdS|
dkrE|jj|
}|\}}||vr*|�|
|jj|
||��nG��d|f|
vr.|���|jstd|||���ntd|||�����C)NT���r F�ztoo much inputz	bad input)	�classifyr#r�labels�shift�popr"�pushr)r
r
rr�ilabel�dfa�stater�states�first�arcs�i�newstate�t�v�itsdfa�	itsstates�itsfirsts                  r�addtokenzParser.addtokents���J����t�U�G�4�4��)	H�#�z�"�~��C����M�F�E��%�=�D�#�$
H�$
H���8��|�*�1�-���1��Q�;�;��J�J�t�U�H�g�>�>�>�$�E� ��-�Q��J�<�7�7����
�
�
�#�z�(�#'�4�4�+/�:�b�>�(��U�D�(+�
���
!��-�Q��J�<�7�7�!�5�5��#�X�X�!�\�.�q�1�F�*0�'�I�x���)�)��	�	�!�T�\�%6�q�%9�8�W�M�M�M�����u�:��%�%��H�H�J�J�J��:�?�(�)9�)-�u�g�?�?�?�?�%�[�$��w�G�G�G�S)	Hrc��	|tjkr=|j�|��|jj�|��}|�|S|jj�|��}|�td|||���|S)Nz	bad token)	r�NAMEr&�addr�keywords�get�tokensr)r
r
rrr2s     rr-zParser.classify�s���4��5�:����O����&�&�&��\�*�.�.�u�5�5�F��!��
���$�(�(��.�.���>��[�$��w�?�?�?��
rc��	|jd\}}}|||df}|�|j|��}|�|d�|��|||f|jd<dS�Nr+)r#rr�append)	r
r
rr9rr3r4rr's	         rr/zParser.shift�sl��(��:�b�>���U�D�����.���,�,�t�|�W�5�5������H�O�O�G�$�$�$��x��.��
�2���rc��	|jd\}}}|d|gf}|||f|jd<|j�|d|f��dS)Nr+r )r#rH)	r
r
�newdfar9rr3r4rr's	         rr1zParser.push�sZ��-��:�b�>���U�D���w��+���x��.��
�2���
���6�1�g�.�/�/�/�/�/rc��	|j���\}}}|�|j|��}|�O|jr.|jd\}}}|d�|��dS||_|j|j_dSdSrG)r#r0rrrHr$r&)r
�popdfa�popstate�popnoder'r3r4rs        rr0z
Parser.pop�s���,�$(�J�N�N�$4�$4�!���'��,�,�t�|�W�5�5�����z�
;�#'�:�b�>� ��U�D��R�����(�(�(�(�(� '��
�+/�?��
�(�(�(�
�rr)
rrrrr)r?r-r/r1r0rrrrrs��������:?�?�?�?�@ � � � �0.H�.H�.H�`���/�/�/�0�0�0�
;�
;�
;�
;�
;rrN)�rrr�objectrrrr�<module>rQs����������K�K�K�K�K��K�K�K�n;�n;�n;�n;�n;�V�n;�n;�n;�n;�n;r

ZeroDay Forums Mini