$29 GRAYBYTE WORDPRESS FILE MANAGER $93

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python310/lib64/python3.10/lib2to3/pgen2/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/lib2to3/pgen2/__pycache__//grammar.cpython-310.pyc
o

���h��@s`dZddlZddlmZGdd�de�ZdZiZe��D]Z	e	r-e	�
�\ZZe
ee�ee<qdS)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/python310/lib64/python3.10/lib2to3/pgen2/grammar.py�__init__Ls
zGrammar.__init__cCsBt|d��}t�|j|tj�Wd�dS1swYdS)z)Dump the grammar tables to a pickle file.�wbN)�open�pickle�dump�__dict__ZHIGHEST_PROTOCOL)r�filename�frrrrWs"�zGrammar.dumpcCsDt|d��
}t�|�}Wd�n1swY|j�|�dS)z+Load the grammar tables from a pickle file.�rbN)rr�loadr�update)rrr�drrrr\s�zGrammar.loadcCs|j�t�|��dS)z3Load the grammar tables from a pickle bytes object.N)rrr�loads)rZpklrrrrbsz
Grammar.loadscCsT|��}dD]
}t||t||����q|jdd�|_|jdd�|_|j|_|S)z#
        Copy the grammar.
        )rrr	rrr
N)�	__class__�setattr�getattr�copyr
rr)r�newZ	dict_attrrrrr"fsz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�reportss




zGrammar.reportN)
�__name__�
__module__�__qualname__�__doc__rrrrr"r&rrrrrs5
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*r�r�objectrZ	opmap_rawZopmap�
splitlines�line�split�op�namer!rrrr�<module>so3��


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
0.18 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
0.15 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
0.18 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
conv.cpython-310.opt-1.pyc
6.04 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
conv.cpython-310.opt-2.pyc
3.64 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
conv.cpython-310.pyc
6.865 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
driver.cpython-310.opt-1.pyc
5.005 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
driver.cpython-310.opt-2.pyc
4.071 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
driver.cpython-310.pyc
5.034 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
grammar.cpython-310.opt-1.pyc
5.602 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
grammar.cpython-310.opt-2.pyc
2.552 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
grammar.cpython-310.pyc
5.602 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
literals.cpython-310.opt-1.pyc
1.358 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
literals.cpython-310.opt-2.pyc
1.287 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
literals.cpython-310.pyc
1.521 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
parse.cpython-310.opt-1.pyc
6.362 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
parse.cpython-310.opt-2.pyc
3.254 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
parse.cpython-310.pyc
6.376 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
pgen.cpython-310.opt-1.pyc
9.244 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
pgen.cpython-310.opt-2.pyc
9.244 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
pgen.cpython-310.pyc
9.634 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
token.cpython-310.opt-1.pyc
1.855 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
token.cpython-310.opt-2.pyc
1.811 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
token.cpython-310.pyc
1.855 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
tokenize.cpython-310.opt-1.pyc
14.714 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
tokenize.cpython-310.opt-2.pyc
10.935 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
tokenize.cpython-310.pyc
14.762 KB
9 Jan 2026 2.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF