Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.100.159
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3.10 /
lib2to3 /
pgen2 /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.cpython-310.pyc
168
B
-rw-r--r--
conv.cpython-310.pyc
6.85
KB
-rw-r--r--
driver.cpython-310.pyc
4.87
KB
-rw-r--r--
grammar.cpython-310.pyc
5.59
KB
-rw-r--r--
literals.cpython-310.pyc
1.51
KB
-rw-r--r--
parse.cpython-310.pyc
6.36
KB
-rw-r--r--
pgen.cpython-310.pyc
9.62
KB
-rw-r--r--
token.cpython-310.pyc
1.84
KB
-rw-r--r--
tokenize.cpython-310.pyc
14.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : conv.cpython-310.pyc
o ��bc�% � @ s2 d Z ddlZddlmZmZ G dd� 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 @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )� Convertera2 Grammar 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. c C s | � |� | �|� | �� dS )z<Load the grammar tables from the text files written by pgen.N)�parse_graminit_h�parse_graminit_c� finish_off)�self� graminit_h� graminit_c� r �)/usr/lib/python3.10/lib2to3/pgen2/conv.py�run/ s z Converter.runc C s� zt |�}W n ty! } ztd||f � W Y d}~dS d}~ww i | _i | _d}|D ]@}|d7 }t�d|�}|sJ|�� rJtd|||�� f � q,|�� \}}t |�}|| jvs[J �|| jvsbJ �|| j|<