$11 GRAYBYTE WORDPRESS FILE MANAGER $75

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

/opt/alt/python36/lib64/python3.6/lib2to3/pgen2/__pycache__/

HOME
Current File : /opt/alt/python36/lib64/python3.6/lib2to3/pgen2/__pycache__//driver.cpython-36.pyc
3

� f��@s�dZdZddgZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZm
Z
mZGdd�de�Zd	d
�Zddd�Zdd�Zdd�Zdd�Zedkr�ejee���dS)zZParser driver.

This provides a high-level interface to parse a file into a syntax tree.

z#Guido van Rossum <[email protected]>�Driver�load_grammar�N�)�grammar�parse�token�tokenize�pgenc@sHeZdZddd�Zddd�Zddd�Zdd	d
�Zddd�Zdd
d�ZdS)rNcCs&||_|dkrtj�}||_||_dS)N)r�logging�	getLogger�logger�convert)�selfrr
r�r�9/opt/alt/python36/lib64/python3.6/lib2to3/pgen2/driver.py�__init__ s
zDriver.__init__FcCs�tj|j|j�}|j�d}d}d}}}}	}
d}�xR|D�]4}|\}}}}	}
|||fkr�||f|ks|t||f|f��|\}
}||
kr�|d|
|7}|
}d}||kr�||
||�7}|}|tjtjfkr�||7}|	\}}|j	d�r@|d7}d}q@|t
jk�rtj|}|�r,|j
jdt
j|||�|j||||f��rT|�rR|j
jd�Pd}|	\}}|j	d�r@|d7}d}q@Wtjd||||f��|jS)	z4Parse a series of tokens and return the syntax tree.rrN��
z%s %r (prefix=%r)zStop.zincomplete input)rZParserrr
Zsetup�AssertionErrorr�COMMENT�NL�endswithr�OPZopmapr�debug�tok_nameZaddtokenZ
ParseErrorZrootnode)r�tokensr�p�lineno�column�type�value�start�endZ	line_text�prefixZ	quintupleZs_linenoZs_columnrrr�parse_tokens'sT


zDriver.parse_tokenscCstj|j�}|j||�S)z*Parse a stream and return the syntax tree.)r�generate_tokens�readliner$)r�streamrrrrr�parse_stream_rawWszDriver.parse_stream_rawcCs|j||�S)z*Parse a stream and return the syntax tree.)r()rr'rrrr�parse_stream\szDriver.parse_streamc
Cs*tj|d|�}z|j||�S|j�XdS)z(Parse a file and return the syntax tree.�rN)�codecs�openr)�close)r�filename�encodingrr'rrr�
parse_file`szDriver.parse_filecCstjtj|�j�}|j||�S)z*Parse a string and return the syntax tree.)rr%�io�StringIOr&r$)r�textrrrrr�parse_stringhszDriver.parse_string)NN)F)F)F)NF)F)	�__name__�
__module__�__qualname__rr$r(r)r0r4rrrrrs

0


cCs:tjj|�\}}|dkrd}||djtttj��dS)Nz.txtr�.z.pickle)�os�path�splitext�join�map�str�sys�version_info)�gt�head�tailrrr�_generate_pickle_namensrD�Grammar.txtTFcCs�|dkrtj�}|dkr t|�n|}|s4t||�r�|jd|�tj|�}|r�|jd|�y|j|�Wq�tk
r�}z|jd|�WYdd}~Xq�Xnt	j
�}|j|�|S)z'Load the grammar (maybe from a pickle).Nz!Generating grammar tables from %szWriting grammar tables to %szWriting failed: %s)r
rrD�_newer�infor	Zgenerate_grammar�dump�OSErrorr�Grammar�load)rAZgp�save�forcer�g�errrrus
 
cCs8tjj|�sdStjj|�s dStjj|�tjj|�kS)z0Inquire whether file a was written since file b.FT)r9r:�exists�getmtime)�a�brrrrF�s
rFcCsFtjj|�rt|�Sttjj|��}tj||�}tj	�}|j
|�|S)a�Normally, loads a pickled grammar by doing
        pkgutil.get_data(package, pickled_grammar)
    where *pickled_grammar* is computed from *grammar_source* by adding the
    Python version and using a ``.pickle`` extension.

    However, if *grammar_source* is an extant file, load_grammar(grammar_source)
    is called instead. This facilitates using a packaged grammar file when needed
    but preserves load_grammar's automatic regeneration behavior when possible.

    )r9r:�isfilerrD�basename�pkgutil�get_datarrJ�loads)�packageZgrammar_sourceZpickled_name�datarNrrr�load_packaged_grammar�s
r[cGsF|stjdd�}tjtjtjdd�x|D]}t|ddd�q,WdS)z�Main program, when run as a script: produce grammar pickle files.

    Calls load_grammar for each argument, a path to a grammar text file.
    rNz%(message)s)�levelr'�formatT)rLrM)r?�argvr
ZbasicConfig�INFO�stdoutr)�argsrArrr�main�s
rb�__main__)rENTFN)�__doc__�
__author__�__all__r+r1r9r
rVr?rrrrrr	�objectrrDrrFr[rbr5�exit�intrrrr�<module>s$P
	



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-36.opt-1.pyc
0.168 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
__init__.cpython-36.opt-2.pyc
0.127 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
__init__.cpython-36.pyc
0.168 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
conv.cpython-36.opt-1.pyc
6.017 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
conv.cpython-36.opt-2.pyc
3.577 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
conv.cpython-36.pyc
6.88 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
driver.cpython-36.opt-1.pyc
4.974 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
driver.cpython-36.opt-2.pyc
3.939 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
driver.cpython-36.pyc
5.021 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
grammar.cpython-36.opt-1.pyc
6.904 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
grammar.cpython-36.opt-2.pyc
3.166 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
grammar.cpython-36.pyc
6.904 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
literals.cpython-36.opt-1.pyc
1.327 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
literals.cpython-36.opt-2.pyc
1.238 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
literals.cpython-36.pyc
1.511 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
parse.cpython-36.opt-1.pyc
6.164 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
parse.cpython-36.opt-2.pyc
3.005 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
parse.cpython-36.pyc
6.193 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pgen.cpython-36.opt-1.pyc
9.127 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pgen.cpython-36.opt-2.pyc
9.113 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pgen.cpython-36.pyc
9.568 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
token.cpython-36.opt-1.pyc
1.821 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
token.cpython-36.opt-2.pyc
1.759 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
token.cpython-36.pyc
1.821 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
tokenize.cpython-36.opt-1.pyc
14.968 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
tokenize.cpython-36.opt-2.pyc
11.115 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
tokenize.cpython-36.pyc
15.038 KB
17 Apr 2024 5.19 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF