✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/lib64/python3.9/lib2to3/pgen2/__pycache__//conv.cpython-39.pyc
a

�i�%�@s2dZddlZddlmZmZGdd�dej�ZdS)a�Convert graminit.[ch] spit out by pgen to Python code.

Pgen is the Python parser generator.  It is useful to quickly create a
parser from a grammar file in Python's grammar notation.  But I don't
want my parsers to be written in C (yet), so I'm translating the
parsing tables to Python data structures and writing a Python parse
engine.

Note that the token numbers are constants determined by the standard
Python tokenizer.  The standard token module defines these numbers and
their names (the names are not used much).  The token numbers are
hardcoded into the Python tokenizer and into pgen.  A Python
implementation of the Python tokenizer is also available, in the
standard tokenize module.

On the other hand, symbol numbers (representing the grammar's
non-terminals) are assigned by pgen based on the actual grammar
input.

Note: this module is pretty much obsolete; the pgen module generates
equivalent grammar tables directly from the Grammar.txt input file
without having to invoke the Python pgen C program.

�N)�grammar�tokenc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�	Convertera2Grammar subclass that reads classic pgen output files.

    The run() method reads the tables as produced by the pgen parser
    generator, typically contained in two C files, graminit.h and
    graminit.c.  The other methods are for internal use only.

    See the base class for more documentation.

    cCs |�|�|�|�|��dS)z<Load the grammar tables from the text files written by pgen.N)�parse_graminit_h�parse_graminit_c�
finish_off)�selfZ
graminit_hZ
graminit_c�r	�*/usr/lib64/python3.9/lib2to3/pgen2/conv.py�run/s

z
Converter.runc	
Cs�zt|�}Wn6tyB}ztd||f�WYd}~dSd}~00i|_i|_d}|D]�}|d7}t�d|�}|s�|��r�td|||��f�qX|��\}}t	|�}||jvs�J�||jvs�J�||j|<||j|<qXdS)	z�Parse the .h file written by pgen.  (Internal)

        This file is a sequence of #define statements defining the
        nonterminals of the grammar as numbers.  We build two tables
        mapping the numbers to names and back.

        �Can't open %s: %sNFr�z^#define\s+(\w+)\s+(\d+)$z%s(%s): can't parse %sT)
�open�OSError�print�
symbol2number�
number2symbol�re�match�strip�groups�int)	r�filename�f�err�lineno�line�mo�symbol�numberr	r	r
r5s,�

zConverter.parse_graminit_hc!
CsPzt|�}Wn6tyB}ztd||f�WYd}~dSd}~00d}|dt|�}}|dksnJ||f��|dt|�}}|dks�J||f��|dt|�}}i}g}|�d��r�|�d��r�t�d	|�}|s�J||f��ttt	|�
���\}	}
}g}t|�D]Z}
|dt|�}}t�d
|�}|�s:J||f��ttt	|�
���\}}|�||f��q|dt|�}}|dk�s�J||f��|||	|
f<|dt|�}}q�t�d|�}|�s�J||f��ttt	|�
���\}}|t
|�k�s�J||f��g}t|�D]~}
|dt|�}}t�d
|�}|�s8J||f��ttt	|�
���\}}	}
||	|
f}|t
|�k�svJ||f��|�|��q|�|�|dt|�}}|dk�s�J||f��|dt|�}}q�||_i}t�d|�}|�s�J||f��t	|�d��}t|�D�]j}|dt|�}}t�d|�}|�s>J||f��|�d�}ttt	|�dddd���\}}}}|j||k�s�J||f��|j||k�s�J||f��|dk�s�J||f��||}|t
|�k�s�J||f��|dt|�}}t�d|�}|�s
J||f��i}t|�d��}t|�D]@\}}t|�}td�D]$}|d|>@�r<d||d|<�q<�q$||f||<�q|dt|�}}|dk�s�J||f��||_g}|dt|�}}t�d|�}|�s�J||f��t	|�d��}t|�D]p}|dt|�}}t�d|�}|�s"J||f��|�
�\}}t	|�}|dk�rFd}nt|�}|�||f��q�|dt|�}}|dk�s�J||f��||_|dt|�}}|dk�s�J||f��|dt|�}}t�d|�}|�s�J||f��t	|�d��}|t
|j�k�sJ�|dt|�}}|dk�s0J||f��|dt|�}}t�d|�}|�s`J||f��t	|�d��}|t
|j�k�s�J||f��|dt|�}}t�d|�}|�s�J||f��t	|�d��} | |jv�s�J||f��| |_|dt|�}}|dk�sJ||f��z|dt|�}}Wnt�y8Yn0d�sLJ||f��dS)a�Parse the .c file written by pgen.  (Internal)

        The file looks as follows.  The first two lines are always this:

        #include "pgenheaders.h"
        #include "grammar.h"

        After that come four blocks:

        1) one or more state definitions
        2) a table defining dfas
        3) a table defining labels
        4) a struct defining the grammar

        A state definition has the following form:
        - one or more arc arrays, each of the form:
          static arc arcs_<n>_<m>[<k>] = {
                  {<i>, <j>},
                  ...
          };
        - followed by a state array, of the form:
          static state states_<s>[<t>] = {
                  {<k>, arcs_<n>_<m>},
                  ...
          };

        rNFrr
z#include "pgenheaders.h"
z#include "grammar.h"
zstatic arc z)static arc arcs_(\d+)_(\d+)\[(\d+)\] = {$z\s+{(\d+), (\d+)},$z};
z'static state states_(\d+)\[(\d+)\] = {$z\s+{(\d+), arcs_(\d+)_(\d+)},$zstatic dfa dfas\[(\d+)\] = {$z0\s+{(\d+), "(\w+)", (\d+), (\d+), states_(\d+),$����z\s+("(?:\\\d\d\d)*")},$�z!static label labels\[(\d+)\] = {$z\s+{(\d+), (0|"\w+")},$�0zgrammar _PyParser_Grammar = {
z
\s+(\d+),$z	dfas,
z\s+{(\d+), labels},$z	\s+(\d+)$)rrr�next�
startswithrr�list�maprr�range�append�len�states�grouprr�eval�	enumerate�ord�dfas�labels�start�
StopIteration)!rrrrrrZallarcsr-r�n�m�kZarcs�_�i�j�s�t�stater2Zndfasrr�x�y�z�firstZ	rawbitset�cZbyter3Znlabelsr4r	r	r
rTs��
�
"
zConverter.parse_graminit_ccCsXi|_i|_t|j�D]<\}\}}|tjkr@|dur@||j|<q|dur||j|<qdS)z1Create additional useful structures.  (Internal).N)�keywords�tokensr0r3r�NAME)rZilabel�type�valuer	r	r
r�szConverter.finish_offN)�__name__�
__module__�__qualname__�__doc__rrrrr	r	r	r
r$s
&r)rLrZpgen2rrZGrammarrr	r	r	r
�<module>s

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
14 Aug 2026 4.57 AM
root / root
0755
__init__.cpython-39.opt-1.pyc
0.163 KB
12 Aug 2026 3.51 PM
root / root
0644
__init__.cpython-39.opt-2.pyc
0.136 KB
12 Aug 2026 3.51 PM
root / root
0644
__init__.cpython-39.pyc
0.163 KB
12 Aug 2026 3.51 PM
root / root
0644
conv.cpython-39.opt-1.pyc
5.99 KB
12 Aug 2026 3.51 PM
root / root
0644
conv.cpython-39.opt-2.pyc
3.566 KB
12 Aug 2026 3.51 PM
root / root
0644
conv.cpython-39.pyc
6.831 KB
12 Aug 2026 3.51 PM
root / root
0644
driver.cpython-39.opt-1.pyc
4.978 KB
12 Aug 2026 3.51 PM
root / root
0644
driver.cpython-39.opt-2.pyc
4.005 KB
12 Aug 2026 3.51 PM
root / root
0644
driver.cpython-39.pyc
5.009 KB
12 Aug 2026 3.51 PM
root / root
0644
grammar.cpython-39.opt-1.pyc
5.573 KB
12 Aug 2026 3.51 PM
root / root
0644
grammar.cpython-39.opt-2.pyc
2.496 KB
12 Aug 2026 3.51 PM
root / root
0644
grammar.cpython-39.pyc
5.573 KB
12 Aug 2026 3.51 PM
root / root
0644
literals.cpython-39.opt-1.pyc
1.332 KB
12 Aug 2026 3.51 PM
root / root
0644
literals.cpython-39.opt-2.pyc
1.257 KB
12 Aug 2026 3.51 PM
root / root
0644
literals.cpython-39.pyc
1.495 KB
12 Aug 2026 3.51 PM
root / root
0644
parse.cpython-39.opt-1.pyc
6.314 KB
12 Aug 2026 3.51 PM
root / root
0644
parse.cpython-39.opt-2.pyc
3.166 KB
12 Aug 2026 3.51 PM
root / root
0644
parse.cpython-39.pyc
6.328 KB
12 Aug 2026 3.51 PM
root / root
0644
pgen.cpython-39.opt-1.pyc
9.101 KB
12 Aug 2026 3.51 PM
root / root
0644
pgen.cpython-39.opt-2.pyc
9.101 KB
12 Aug 2026 3.51 PM
root / root
0644
pgen.cpython-39.pyc
9.494 KB
12 Aug 2026 3.51 PM
root / root
0644
token.cpython-39.opt-1.pyc
1.845 KB
12 Aug 2026 3.51 PM
root / root
0644
token.cpython-39.opt-2.pyc
1.796 KB
12 Aug 2026 3.51 PM
root / root
0644
token.cpython-39.pyc
1.845 KB
12 Aug 2026 3.51 PM
root / root
0644
tokenize.cpython-39.opt-1.pyc
14.77 KB
12 Aug 2026 3.51 PM
root / root
0644
tokenize.cpython-39.opt-2.pyc
10.967 KB
12 Aug 2026 3.51 PM
root / root
0644
tokenize.cpython-39.pyc
14.817 KB
12 Aug 2026 3.51 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF