usr
/
lib64
/
python2.7
/
lib2to3
/
pgen2
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.py
143 bytes
Rename
Delete
__init__.pyc
174 bytes
Rename
Delete
__init__.pyo
174 bytes
Rename
Delete
conv.py
9.40 KB
Rename
Delete
conv.pyc
8.00 KB
Rename
Delete
conv.pyo
6.87 KB
Rename
Delete
driver.py
5.90 KB
Rename
Delete
driver.pyc
6.31 KB
Rename
Delete
driver.pyo
6.25 KB
Rename
Delete
grammar.py
6.44 KB
Rename
Delete
grammar.pyc
7.50 KB
Rename
Delete
grammar.pyo
7.50 KB
Rename
Delete
literals.py
1.58 KB
Rename
Delete
literals.pyc
1.97 KB
Rename
Delete
literals.pyo
1.74 KB
Rename
Delete
parse.py
7.86 KB
Rename
Delete
parse.pyc
7.07 KB
Rename
Delete
parse.pyo
7.03 KB
Rename
Delete
pgen.py
13.50 KB
Rename
Delete
pgen.pyc
11.95 KB
Rename
Delete
pgen.pyo
11.35 KB
Rename
Delete
token.py
1.23 KB
Rename
Delete
token.pyc
2.25 KB
Rename
Delete
token.pyo
2.25 KB
Rename
Delete
tokenize.py
18.79 KB
Rename
Delete
tokenize.pyc
16.57 KB
Rename
Delete
tokenize.pyo
16.49 KB
Rename
Delete
� {fc @ sE d Z d d l Z d d l m Z m Z d e j f d � � YZ d S( s� 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. i����N( t grammart tokent Converterc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s2 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( | j | � | j | � | j � d S( s<