$83 GRAYBYTE WORDPRESS FILE MANAGER $92

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/python35/lib64/python3.5/lib2to3/pgen2/__pycache__/

HOME
Current File : /opt/alt/python35/lib64/python3.5/lib2to3/pgen2/__pycache__//driver.cpython-35.pyc


��YfY�@s�dZdZddgZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZmZm
Z
Gdd�de�Zd	d
�Zdddd
ddd�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@speZdZdddd�Zddd�Zddd�Zdd	d
�Zdddd�Zdd
d�ZdS)rNcCs7||_|dkr!tj�}||_||_dS)N)r�logging�	getLogger�logger�convert)�selfrr
r�r�9/opt/alt/python35/lib64/python3.5/lib2to3/pgen2/driver.py�__init__s
		zDriver.__init__FcCs"tj|j|j�}|j�d}d}d}}}}	}
d}x�|D]�}|\}}}}	}
|||fkr||f|ks�t||f|f��|\}
}||
kr�|d|
|7}|
}d}||kr||
||�7}|}|tjtjfkrT||7}|	\}}|j	d�rQ|d7}d}qQ|t
jkrptj|}|r�|j
jdt
j|||�|j||||f�r�|r�|j
jd�Pd}|	\}}|j	d�rQ|d7}d}qQWtjd||||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_tokenscCs"tj|j�}|j||�S)z*Parse a stream and return the syntax tree.)r�generate_tokens�readliner$)r�streamrrrrr�parse_stream_rawVszDriver.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||�SWd|j�XdS)z(Parse a file and return the syntax tree.�rN)�codecs�openr)�close)r�filename�encodingrr'rrr�
parse_file_szDriver.parse_filecCs+tjtj|�j�}|j||�S)z*Parse a string and return the syntax tree.)rr%�io�StringIOr&r$)r�textrrrrr�parse_stringgszDriver.parse_string)	�__name__�
__module__�__qualname__rr$r(r)r0r4rrrrrs0cCsOtjj|�\}}|dkr*d}||djtttj��dS)Nz.txtr�.z.pickle)�os�path�splitext�join�map�str�sys�version_info)�gt�head�tailrrr�_generate_pickle_namemsrDzGrammar.txtTFcCs�|dkrtj�}|dkr0t|�n|}|sLt||�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�OSErrorrZGrammar�load)rAZgp�save�forcer�g�errrrts&
cCsNtjj|�sdStjj|�s,dStjj|�tjj|�kS)z0Inquire whether file a was written since file b.FT)r9r:�exists�getmtime)�a�brrrrE�s
rEcGsf|stjdd�}tjdtjdtjdd�x$|D]}t|ddd	d�qBWdS)
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.
    rN�levelr'�formatz%(message)srJTrK)r?�argvr
ZbasicConfig�INFO�stdoutr)�argsrArrr�main�s
rX�__main__)�__doc__�
__author__�__all__r+r1r9r
r?rrrrrr	�objectrrDrrErXr5�exit�intrrrr�<module>s (P	



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Aug 2024 8.41 AM
root / linksafe
0755
__init__.cpython-35.opt-1.pyc
0.17 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.opt-2.pyc
0.127 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.pyc
0.17 KB
31 May 2024 1.51 PM
root / linksafe
0644
conv.cpython-35.opt-1.pyc
6.57 KB
31 May 2024 1.51 PM
root / linksafe
0644
conv.cpython-35.opt-2.pyc
4.127 KB
31 May 2024 1.51 PM
root / linksafe
0644
conv.cpython-35.pyc
7.675 KB
31 May 2024 1.51 PM
root / linksafe
0644
driver.cpython-35.opt-1.pyc
4.596 KB
31 May 2024 1.51 PM
root / linksafe
0644
driver.cpython-35.opt-2.pyc
4.025 KB
31 May 2024 1.51 PM
root / linksafe
0644
driver.cpython-35.pyc
4.654 KB
31 May 2024 1.51 PM
root / linksafe
0644
grammar.cpython-35.opt-1.pyc
6.949 KB
31 May 2024 1.51 PM
root / linksafe
0644
grammar.cpython-35.opt-2.pyc
3.259 KB
31 May 2024 1.51 PM
root / linksafe
0644
grammar.cpython-35.pyc
6.949 KB
31 May 2024 1.51 PM
root / linksafe
0644
literals.cpython-35.opt-1.pyc
1.473 KB
31 May 2024 1.51 PM
root / linksafe
0644
literals.cpython-35.opt-2.pyc
1.382 KB
31 May 2024 1.51 PM
root / linksafe
0644
literals.cpython-35.pyc
1.704 KB
31 May 2024 1.51 PM
root / linksafe
0644
parse.cpython-35.opt-1.pyc
6.518 KB
31 May 2024 1.51 PM
root / linksafe
0644
parse.cpython-35.opt-2.pyc
3.353 KB
31 May 2024 1.51 PM
root / linksafe
0644
parse.cpython-35.pyc
6.553 KB
31 May 2024 1.51 PM
root / linksafe
0644
pgen.cpython-35.opt-1.pyc
10.246 KB
31 May 2024 1.51 PM
root / linksafe
0644
pgen.cpython-35.opt-2.pyc
10.232 KB
31 May 2024 1.51 PM
root / linksafe
0644
pgen.cpython-35.pyc
10.799 KB
31 May 2024 1.51 PM
root / linksafe
0644
token.cpython-35.opt-1.pyc
1.978 KB
31 May 2024 1.51 PM
root / linksafe
0644
token.cpython-35.opt-2.pyc
1.913 KB
31 May 2024 1.51 PM
root / linksafe
0644
token.cpython-35.pyc
1.978 KB
31 May 2024 1.51 PM
root / linksafe
0644
tokenize.cpython-35.opt-1.pyc
15.501 KB
31 May 2024 1.51 PM
root / linksafe
0644
tokenize.cpython-35.opt-2.pyc
11.646 KB
31 May 2024 1.51 PM
root / linksafe
0644
tokenize.cpython-35.pyc
15.582 KB
31 May 2024 1.51 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF