/usr/lib64/python3.12/lib2to3/pgen2/__pycache__
NameSizeModeActions
conv.cpython-312.opt-1.pyc99050644editdlrm
conv.cpython-312.opt-2.pyc74550644editdlrm
conv.cpython-312.pyc117590644editdlrm
driver.cpython-312.opt-1.pyc80280644editdlrm
driver.cpython-312.opt-2.pyc70810644editdlrm
driver.cpython-312.pyc80980644editdlrm
grammar.cpython-312.opt-1.pyc70040644editdlrm
grammar.cpython-312.opt-2.pyc38880644editdlrm
grammar.cpython-312.pyc70040644editdlrm
literals.cpython-312.opt-1.pyc21320644editdlrm
literals.cpython-312.opt-2.pyc20590644editdlrm
literals.cpython-312.pyc25930644editdlrm
parse.cpython-312.opt-1.pyc87010644editdlrm
parse.cpython-312.opt-2.pyc55280644editdlrm
parse.cpython-312.pyc87240644editdlrm
pgen.cpython-312.opt-1.pyc177170644editdlrm
pgen.cpython-312.opt-2.pyc177170644editdlrm
pgen.cpython-312.pyc187040644editdlrm
token.cpython-312.opt-1.pyc22440644editdlrm
token.cpython-312.opt-2.pyc21980644editdlrm
token.cpython-312.pyc22440644editdlrm
tokenize.cpython-312.opt-1.pyc208100644editdlrm
tokenize.cpython-312.opt-2.pyc169510644editdlrm
tokenize.cpython-312.pyc209370644editdlrm
__init__.cpython-312.opt-1.pyc1790644editdlrm
__init__.cpython-312.opt-2.pyc1490644editdlrm
__init__.cpython-312.pyc1790644editdlrm
Edit: /usr/lib64/python3.12/lib2to3/pgen2/__pycache__/grammar.cpython-312.pyc (7004B)
Ë â{|j°ãó®—dZddlZddlmZGd„de«ZdZiZej«D]$Z e sŒe j«\Z Z e ee «ee <Œ&[ [ [ y)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ó4—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z y) Ú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. có„—i|_i|_g|_i|_dg|_i|_i|_i|_d|_y)N)rÚEMPTYé) Ú symbol2numberÚ number2symbolÚstatesÚdfasÚlabelsÚkeywordsÚtokensÚ symbol2labelÚstart)Úselfs ú./usr/lib64/python3.12/lib2to3/pgen2/grammar.pyÚ__init__zGrammar.__init__LsF€ØˆÔØˆÔØˆŒ ؈Œ Ø#nˆŒ ؈Œ ؈Œ ØˆÔØˆ ócó¤—t|d«5}tj|j|tj«ddd«y#1swYyxYw)z)Dump the grammar tables to a pickle file.ÚwbN)ÚopenÚpickleÚdumpÚ__dict__ÚHIGHEST_PROTOCOL)rÚfilenameÚfs rrz Grammar.dumpWs4€ä (˜DÔ ! QÜ K‰K˜Ÿ ™  q¬&×*AÑ*AÔ B÷"× !Ñ !ús 0AÁAcó¦—t|d«5}tj|«}ddd«|jj «y#1swYŒ%xYw)z+Load the grammar tables from a pickle file.ÚrbN)rrÚloadrÚupdate)rrrÚds rr"z Grammar.load\s;€ä (˜DÔ ! QÜ— ‘ ˜A“ˆA÷"à ‰ ×јQÕ÷"Ð !ús AÁAcó`—|jjtj|««y)z3Load the grammar tables from a pickle bytes object.N)rr#rÚloads)rÚpkls rr&z Grammar.loadsbs€à ‰ ×ÑœVŸ\™\¨#Ó.Õ/rc óð—|j«}dD]'}t||t||«j««Œ)|jdd|_|j dd|_|j |_|S)z# Copy the grammar. )r r r rrrN)Ú __class__ÚsetattrÚgetattrÚcopyrr r)rÚnewÚ dict_attrs rr,z Grammar.copyfsh€ðn‰nÓˆó4ˆIä C˜¤G¨D°)Ó$<×$AÑ$AÓ$CÕ Dð4ð—[‘[¡^ˆŒ Ø—[‘[¡^ˆŒ Ø—J‘JˆŒ ؈ rcó^—ddlm}td«||j«td«||j«td«||j«td«||j «td«||j «td|j«y ) z:Dump the grammar tables to standard output, for debugging.r)ÚpprintÚs2nÚn2sr r rrN)r0Úprintr r r r rr)rr0s rÚreportzGrammar.reportssv€å!Ü ˆeŒ Ùˆt×!Ñ!Ô"Ü ˆeŒ Ùˆt×!Ñ!Ô"Ü ˆhŒÙˆt{‰{ÔÜ ˆfŒ Ùˆty‰yÔÜ ˆhŒÙˆt{‰{ÔÜ ˆgt—z‘zÕ"rN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrr"r&r,r4©rrrrs'„ñ3òj òCò  ò 0ò ó #rra ( 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 )r8rÚrÚobjectrÚ opmap_rawÚopmapÚ splitlinesÚlineÚsplitÚopÚnamer+r9rrÚrCspðñ óõôj#ˆfôj#ð^1 € ðf €Ø × Ñ Ö "€DÚ Ø—:‘:“<‰ˆˆDÙ˜E 4Ó(ˆˆbŠ ð #ð ˆ"‰dr