SILENT KILLERPanel

Current Path: > > opt > alt > python37 > lib64 > python3.7 > lib2to3 > pgen2 > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python37/lib64/python3.7/lib2to3/pgen2/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-37.opt-1.pyc File 176 bytes April 17 2024 17:36:13.
__init__.cpython-37.opt-2.pyc File 148 bytes April 17 2024 17:35:53.
__init__.cpython-37.pyc File 176 bytes April 17 2024 17:36:19.
conv.cpython-37.opt-1.pyc File 6167 bytes April 17 2024 17:36:13.
conv.cpython-37.opt-2.pyc File 3683 bytes April 17 2024 17:35:53.
conv.cpython-37.pyc File 7051 bytes April 17 2024 17:36:19.
driver.cpython-37.opt-1.pyc File 5089 bytes April 17 2024 17:36:13.
driver.cpython-37.opt-2.pyc File 4044 bytes April 17 2024 17:35:53.
driver.cpython-37.pyc File 5137 bytes April 17 2024 17:36:19.
grammar.cpython-37.opt-1.pyc File 7027 bytes April 17 2024 17:36:13.
grammar.cpython-37.opt-2.pyc File 3213 bytes April 17 2024 17:35:53.
grammar.cpython-37.pyc File 7027 bytes April 17 2024 17:36:19.
literals.cpython-37.opt-1.pyc File 1367 bytes April 17 2024 17:36:13.
literals.cpython-37.opt-2.pyc File 1290 bytes April 17 2024 17:35:53.
literals.cpython-37.pyc File 1555 bytes April 17 2024 17:36:19.
parse.cpython-37.opt-1.pyc File 6269 bytes April 17 2024 17:36:13.
parse.cpython-37.opt-2.pyc File 3048 bytes April 17 2024 17:35:53.
parse.cpython-37.pyc File 6301 bytes April 17 2024 17:36:19.
pgen.cpython-37.opt-1.pyc File 9335 bytes April 17 2024 17:36:13.
pgen.cpython-37.opt-2.pyc File 9335 bytes April 17 2024 17:35:53.
pgen.cpython-37.pyc File 9777 bytes April 17 2024 17:36:19.
token.cpython-37.opt-1.pyc File 1892 bytes April 17 2024 17:36:13.
token.cpython-37.opt-2.pyc File 1842 bytes April 17 2024 17:35:53.
token.cpython-37.pyc File 1892 bytes April 17 2024 17:36:19.
tokenize.cpython-37.opt-1.pyc File 15072 bytes April 17 2024 17:36:13.
tokenize.cpython-37.opt-2.pyc File 11142 bytes April 17 2024 17:35:53.
tokenize.cpython-37.pyc File 15142 bytes April 17 2024 17:36:19.

Reading File: //opt/alt/python37/lib64/python3.7/lib2to3/pgen2/__pycache__/grammar.cpython-37.pyc

B

� f��@stdZddlZddlZddlmZGdd�de�Zdd�Zd	ZiZ	x.e�
�D]"ZerJe��\Z
Zeee�e	e
<qJWdS)
a�This module defines the data structures used to represent a grammar.

These are a bit arcane because they are derived from the data
structures used by Python's 'pgen' parser generator.

There's also a table here mapping operators to their names in the
token module; the Python tokenize module reports all operators as the
fallback token code OP, but the parser needs the actual token code.

�N�)�tokenc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)�Grammara�	Pgen parsing tables conversion class.

    Once initialized, this class supplies the grammar tables for the
    parsing engine implemented by parse.py.  The parsing engine
    accesses the instance variables directly.  The class here does not
    provide initialization of the tables; several subclasses exist to
    do this (see the conv and pgen modules).

    The load() method reads the tables from a pickle file, which is
    much faster than the other ways offered by subclasses.  The pickle
    file is written by calling dump() (after loading the grammar
    tables using a subclass).  The report() method prints a readable
    representation of the tables to stdout, for debugging.

    The instance variables are as follows:

    symbol2number -- a dict mapping symbol names to numbers.  Symbol
                     numbers are always 256 or higher, to distinguish
                     them from token numbers, which are between 0 and
                     255 (inclusive).

    number2symbol -- a dict mapping numbers to symbol names;
                     these two are each other's inverse.

    states        -- a list of DFAs, where each DFA is a list of
                     states, each state is a list of arcs, and each
                     arc is a (i, j) pair where i is a label and j is
                     a state number.  The DFA number is the index into
                     this list.  (This name is slightly confusing.)
                     Final states are represented by a special arc of
                     the form (0, j) where j is its own state number.

    dfas          -- a dict mapping symbol numbers to (DFA, first)
                     pairs, where DFA is an item from the states list
                     above, and first is a set of tokens that can
                     begin this grammar rule (represented by a dict
                     whose values are always 1).

    labels        -- a list of (x, y) pairs where x is either a token
                     number or a symbol number, and y is either None
                     or a string; the strings are keywords.  The label
                     number is the index in this list; label numbers
                     are used to mark state transitions (arcs) in the
                     DFAs.

    start         -- the number of the grammar's start symbol.

    keywords      -- a dict mapping keyword strings to arc labels.

    tokens        -- a dict mapping token numbers to arc labels.

    cCs<i|_i|_g|_i|_dg|_i|_i|_i|_d|_dS)N)rZEMPTY�)	�
symbol2number�
number2symbol�states�dfas�labels�keywords�tokens�symbol2label�start)�self�r�:/opt/alt/python37/lib64/python3.7/lib2to3/pgen2/grammar.py�__init__MszGrammar.__init__c	Cs2t|d��}t|j�}t�||d�WdQRXdS)a�Dump the grammar tables to a pickle file.

        dump() recursively changes all dict to OrderedDict, so the pickled file
        is not exactly the same as what was passed in to dump(). load() uses the
        pickled file to create the tables, but  only changes OrderedDict to dict
        at the top level; it does not recursively change OrderedDict to dict.
        So, the loaded tables are different from the original tables that were
        passed to load() in that some of the OrderedDict (from the pickled file)
        are not changed back to dict. For parsing, this has no effect on
        performance because OrderedDict uses dict's __getitem__ with nothing in
        between.
        �wb�N)�open�_make_deterministic�__dict__�pickle�dump)r�filename�f�drrrrXs

zGrammar.dumpc	Cs0t|d��}t�|�}WdQRX|j�|�dS)z+Load the grammar tables from a pickle file.�rbN)rr�loadr�update)rrrrrrrriszGrammar.loadcCs|j�t�|��dS)z3Load the grammar tables from a pickle bytes object.N)rrr�loads)rZpklrrrr osz
Grammar.loadscCsX|��}x"dD]}t||t||����qW|jdd�|_|jdd�|_|j|_|S)z#
        Copy the grammar.
        )rrr	rrr
N)�	__class__�setattr�getattr�copyr
rr)r�newZ	dict_attrrrrr$ss
zGrammar.copycCsvddlm}td�||j�td�||j�td�||j�td�||j�td�||j�td|j�d	S)
z:Dump the grammar tables to standard output, for debugging.r)�pprintZs2nZn2srr	r
rN)r&�printrrrr	r
r)rr&rrr�report�s




zGrammar.reportN)
�__name__�
__module__�__qualname__�__doc__rrrr r$r(rrrrrs4
rcCs^t|t�r&t�tdd�|��D���St|t�r>dd�|D�St|t�rZtdd�|D��S|S)Ncss|]\}}|t|�fVqdS)N)r)�.0�k�vrrr�	<genexpr>�sz&_make_deterministic.<locals>.<genexpr>cSsg|]}t|��qSr)r)r-�errr�
<listcomp>�sz'_make_deterministic.<locals>.<listcomp>css|]}t|�VqdS)N)r)r-r1rrrr0�s)�
isinstance�dict�collections�OrderedDict�sorted�items�list�tuple)�toprrrr�s


ra
( LPAR
) RPAR
[ LSQB
] RSQB
: COLON
, COMMA
; SEMI
+ PLUS
- MINUS
* STAR
/ SLASH
| VBAR
& AMPER
< LESS
> GREATER
= EQUAL
. DOT
% PERCENT
` BACKQUOTE
{ LBRACE
} RBRACE
@ AT
@= ATEQUAL
== EQEQUAL
!= NOTEQUAL
<> NOTEQUAL
<= LESSEQUAL
>= GREATEREQUAL
~ TILDE
^ CIRCUMFLEX
<< LEFTSHIFT
>> RIGHTSHIFT
** DOUBLESTAR
+= PLUSEQUAL
-= MINEQUAL
*= STAREQUAL
/= SLASHEQUAL
%= PERCENTEQUAL
&= AMPEREQUAL
|= VBAREQUAL
^= CIRCUMFLEXEQUAL
<<= LEFTSHIFTEQUAL
>>= RIGHTSHIFTEQUAL
**= DOUBLESTAREQUAL
// DOUBLESLASH
//= DOUBLESLASHEQUAL
-> RARROW
:= COLONEQUAL
)r,r5r�r�objectrrZ	opmap_rawZopmap�
splitlines�line�split�op�namer#rrrr�<module>
sy>

SILENT KILLER Tool