Current Path: > > usr > lib64 > python2.7 > > lib2to3 > > pgen2
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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.py | File | 143 bytes | April 10 2024 04:58:35. | |
__init__.pyc | File | 174 bytes | April 10 2024 04:58:46. | |
__init__.pyo | File | 174 bytes | April 10 2024 04:58:46. | |
conv.py | File | 9627 bytes | April 10 2024 04:58:35. | |
conv.pyc | File | 8189 bytes | April 10 2024 04:58:46. | |
conv.pyo | File | 7037 bytes | April 10 2024 04:58:43. | |
driver.py | File | 6041 bytes | April 10 2024 04:58:35. | |
driver.pyc | File | 6463 bytes | April 10 2024 04:58:46. | |
driver.pyo | File | 6400 bytes | April 10 2024 04:58:43. | |
grammar.py | File | 6594 bytes | April 10 2024 04:58:35. | |
grammar.pyc | File | 7684 bytes | April 10 2024 04:58:46. | |
grammar.pyo | File | 7684 bytes | April 10 2024 04:58:46. | |
literals.py | File | 1614 bytes | April 10 2024 04:58:35. | |
literals.pyc | File | 2018 bytes | April 10 2024 04:58:46. | |
literals.pyo | File | 1786 bytes | April 10 2024 04:58:43. | |
parse.py | File | 8053 bytes | April 10 2024 04:58:35. | |
parse.pyc | File | 7236 bytes | April 10 2024 04:58:46. | |
parse.pyo | File | 7197 bytes | April 10 2024 04:58:43. | |
pgen.py | File | 13826 bytes | April 10 2024 04:58:35. | |
pgen.pyc | File | 12238 bytes | April 10 2024 04:58:46. | |
pgen.pyo | File | 11625 bytes | April 10 2024 04:58:43. | |
token.py | File | 1256 bytes | April 10 2024 04:58:35. | |
token.pyc | File | 2303 bytes | April 10 2024 04:58:46. | |
token.pyo | File | 2303 bytes | April 10 2024 04:58:46. | |
tokenize.py | File | 19244 bytes | April 10 2024 04:58:35. | |
tokenize.pyc | File | 16971 bytes | April 10 2024 04:58:46. | |
tokenize.pyo | File | 16882 bytes | April 10 2024 04:58:43. |
� {fc @ s� d Z d d l Z d d l Z d d l m Z m Z d e f d � � YZ d � Z d Z i Z xB e j � D]4 Z e rl e j � \ Z Z e e e � e e <ql ql Wd S( s� 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. i����Ni ( t tokent tokenizet Grammarc B sD e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� 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 C sX i | _ i | _ g | _ i | _ d g | _ i | _ i | _ i | _ d | _ d S( Ni t EMPTYi ( i R ( t symbol2numbert number2symbolt statest dfast labelst keywordst tokenst symbol2labelt start( t self( ( s- /usr/lib64/python2.7/lib2to3/pgen2/grammar.pyt __init__M s c C s>