SILENT KILLERPanel

Current Path: > > opt > alt > python35 > lib64 > > python3.5 > 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/python35/lib64//python3.5/lib2to3/pgen2/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-35.opt-1.pyc File 174 bytes May 31 2024 13:51:50.
__init__.cpython-35.opt-2.pyc File 130 bytes May 31 2024 13:51:30.
__init__.cpython-35.pyc File 174 bytes May 31 2024 13:51:55.
conv.cpython-35.opt-1.pyc File 6728 bytes May 31 2024 13:51:50.
conv.cpython-35.opt-2.pyc File 4226 bytes May 31 2024 13:51:30.
conv.cpython-35.pyc File 7859 bytes May 31 2024 13:51:55.
driver.cpython-35.opt-1.pyc File 4706 bytes May 31 2024 13:51:50.
driver.cpython-35.opt-2.pyc File 4122 bytes May 31 2024 13:51:30.
driver.cpython-35.pyc File 4766 bytes May 31 2024 13:51:55.
grammar.cpython-35.opt-1.pyc File 7116 bytes May 31 2024 13:51:50.
grammar.cpython-35.opt-2.pyc File 3337 bytes May 31 2024 13:51:30.
grammar.cpython-35.pyc File 7116 bytes May 31 2024 13:51:55.
literals.cpython-35.opt-1.pyc File 1508 bytes May 31 2024 13:51:50.
literals.cpython-35.opt-2.pyc File 1415 bytes May 31 2024 13:51:30.
literals.cpython-35.pyc File 1745 bytes May 31 2024 13:51:55.
parse.cpython-35.opt-1.pyc File 6674 bytes May 31 2024 13:51:51.
parse.cpython-35.opt-2.pyc File 3433 bytes May 31 2024 13:51:30.
parse.cpython-35.pyc File 6710 bytes May 31 2024 13:51:55.
pgen.cpython-35.opt-1.pyc File 10492 bytes May 31 2024 13:51:51.
pgen.cpython-35.opt-2.pyc File 10478 bytes May 31 2024 13:51:30.
pgen.cpython-35.pyc File 11058 bytes May 31 2024 13:51:55.
token.cpython-35.opt-1.pyc File 2025 bytes May 31 2024 13:51:50.
token.cpython-35.opt-2.pyc File 1959 bytes May 31 2024 13:51:30.
token.cpython-35.pyc File 2025 bytes May 31 2024 13:51:55.
tokenize.cpython-35.opt-1.pyc File 15873 bytes May 31 2024 13:51:51.
tokenize.cpython-35.opt-2.pyc File 11926 bytes May 31 2024 13:51:30.
tokenize.cpython-35.pyc File 15956 bytes May 31 2024 13:51:55.

Reading File: //opt/alt/python35/lib64//python3.5/lib2to3/pgen2/__pycache__/parse.cpython-35.opt-1.pyc



��Yfu�@sFdZddlmZGdd�de�ZGdd�de�ZdS)z�Parser engine for the grammar tables generated by pgen.

The grammar table must be loaded first.

See Parser/parser.c in the Python distribution for additional info on
how this parsing engine works.

�)�tokenc@s"eZdZdZdd�ZdS)�
ParseErrorz(Exception to signal the parser is stuck.cCsHtj|d||||f�||_||_||_||_dS)Nz!%s: type=%r, value=%r, context=%r)�	Exception�__init__�msg�type�value�context)�selfrrrr	�r�8/opt/alt/python35/lib64/python3.5/lib2to3/pgen2/parse.pyrs			zParseError.__init__N)�__name__�
__module__�__qualname__�__doc__rrrrrrsrc@speZdZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�Parsera5Parser engine.

    The proper usage sequence is:

    p = Parser(grammar, [converter])  # create instance
    p.setup([start])                  # prepare for parsing
    <for each input token>:
        if p.addtoken(...):           # parse a token; may raise ParseError
            break
    root = p.rootnode                 # root of abstract syntax tree

    A Parser instance may be reused by calling setup() repeatedly.

    A Parser instance contains state pertaining to the current token
    sequence, and should not be used concurrently by different threads
    to parse separate token sequences.

    See driver.py for how to get input tokens by tokenizing a file or
    string.

    Parsing is complete when addtoken() returns True; the root of the
    abstract syntax tree can then be retrieved from the rootnode
    instance variable.  When a syntax error occurs, addtoken() raises
    the ParseError exception.  There is no error recovery; the parser
    cannot be used after a syntax error was reported (but it can be
    reinitialized by calling setup()).

    NcCs"||_|pdd�|_dS)a�Constructor.

        The grammar argument is a grammar.Grammar instance; see the
        grammar module for more information.

        The parser is not ready yet for parsing; you must call the
        setup() method to get it started.

        The optional convert argument is a function mapping concrete
        syntax tree nodes to abstract syntax tree nodes.  If not
        given, no conversion is done and the syntax tree produced is
        the concrete syntax tree.  If given, it must be a function of
        two arguments, the first being the grammar (a grammar.Grammar
        instance), and the second being the concrete syntax tree node
        to be converted.  The syntax tree is converted from the bottom
        up.

        A concrete syntax tree node is a (type, value, context, nodes)
        tuple, where type is the node type (a token or symbol number),
        value is None for symbols and a string for tokens, context is
        None or an opaque value used for error reporting (typically a
        (lineno, offset) pair), and nodes is a list of children for
        symbols, and None for tokens.

        An abstract syntax tree node may be anything; this is entirely
        up to the converter function.

        cSs|S)Nr)�grammar�noderrr�<lambda>Wsz!Parser.__init__.<locals>.<lambda>N)r�convert)r
rrrrrr9s	zParser.__init__cCsh|dkr|jj}|ddgf}|jj|d|f}|g|_d|_t�|_dS)a�Prepare for parsing.

        This *must* be called before starting to parse.

        The optional argument is an alternative start symbol; it
        defaults to the grammar's start symbol.

        You can use a Parser instance to parse any number of programs;
        each time you call setup() the parser is reset to an initial
        state determined by the (implicit or explicit) start symbol.

        N�)r�start�dfas�stack�rootnode�set�
used_names)r
r�newnodeZ
stackentryrrr�setupYs
	zParser.setupcCs�|j|||�}x�|jd	\}}}|\}}	||}
xV|
D]�\}}|jj|\}
}||kr�|j||||�|}xV||d|fgkr�|j�|js�dS|jd
\}}}|\}}	q�WdS|
dkrK|jj|
}|\}}||krK|j|
|jj|
||�PqKWd|f|
kr�|j�|js�td|||��qtd|||��qWdS)z<Add a token; return True iff this is the end of the program.rrTF�ztoo much inputz	bad inputN���r )	�classifyrrZlabels�shift�popr�pushr)r
rrr	�ilabel�dfa�staterZstates�firstZarcs�i�newstate�t�vZitsdfaZ	itsstatesZitsfirstrrr�addtokenqs:

	 
	zParser.addtokencCs~|tjkrD|jj|�|jjj|�}|dk	rD|S|jjj|�}|dkrztd|||��|S)z&Turn a token into a label.  (Internal)Nz	bad token)	r�NAMEr�addr�keywords�get�tokensr)r
rrr	r%rrrr!�szParser.classifyc	Cst|jd\}}}|||df}|j|j|�}|dk	rZ|dj|�|||f|jd<dS)zShift a token.  (Internal)rNr r r )rrr�append)	r
rrr*r	r&r'rrrrrr"�szParser.shiftc	Cs[|jd\}}}|d|gf}|||f|jd<|jj|d|f�dS)zPush a nonterminal.  (Internal)rNrr r )rr3)	r
rZnewdfar*r	r&r'rrrrrr$�szParser.pushcCs�|jj�\}}}|j|j|�}|dk	r�|jrl|jd\}}}|dj|�n||_|j|j_dS)zPop a nonterminal.  (Internal)Nrr r )rr#rrr3rr)r
ZpopdfaZpopstateZpopnoderr&r'rrrrr#�s		z
Parser.pop)r
rrrrrr-r!r"r$r#rrrrrs 0	rN)r�rrr�objectrrrrr�<module>s

SILENT KILLER Tool