ok

Mini Shell

Direktori : /usr/lib64/python2.7/
Upload File :
Current File : //usr/lib64/python2.7/tokenize.pyc

�
]цdc@s�dZdZdZddlZddlZddlTddlZgee�D]Zejd�sMe^qMZ	e	ddd	d
dg7Z	[[e
Zdee<e
dZ
d
ee
<e
d
7Z
d�Zd�Zd�ZdZdZeede�ee�ZdZdZdZdZdZeeeee�ZdZedd�ee�ZdeZeee�Zeded�Zeeee�ZdZ d Z!d!Z"d"Z#ed#d$�Z$ed%d&�Z%ed'd(d)d*d+d,d-d.�Z&d/Z'ed0d1�Z(ee&e'e(�Z)eee)e%e�Z*ee*Z+ed2ed3d�d4ed5d��Z,ed6ee$�Z-eee-ee)e,e�Z.e/ej0e+e.e"e#f�\Z1Z2Z3Z4i&ej0e �d36ej0e!�d56e3d76e4d86e3d96e4d:6e3d;6e4d<6e3d=6e4d>6e3d?6e4d@6e3dA6e4dB6e3dC6e4dD6e3dE6e4dF6e3dG6e4dH6e3dI6e4dJ6e3dK6e4dL6e3dM6e4dN6e3dO6e4dP6e3dQ6e4dR6e3dS6e4dT6ddU6ddV6ddW6ddX6ddY6ddZ6Z6iZ7xd�D]Z8e8e7e8<q�WiZ9xd�D]Z8e8e9e8<q�WdwZ:dxe;fdy��YZ<dze;fd{��YZ=d|�Z>e>d}�Z?d~�Z@dd�d���YZAd��ZBd��ZCeDd�kr�ddlEZEeFeEjG�dkr�e?eHeEjGd�jI�q�e?eEjJjI�ndS(�s�Tokenization help for Python programs.

generate_tokens(readline) is a generator that breaks a stream of
text into Python tokens.  It accepts a readline-like method which is called
repeatedly to get the next line of input (or "" for EOF).  It generates
5-tuples with these members:

    the token type (see token.py)
    the token (a string)
    the starting (row, column) indices of the token (a 2-tuple of ints)
    the ending (row, column) indices of the token (a 2-tuple of ints)
    the original line (string)

It is designed to match the working of the Python tokenizer exactly, except
that it produces COMMENT tokens for comments and gives type OP for all
operators

Older entry points
    tokenize_loop(readline, tokeneater)
    tokenize(readline, tokeneater=printtoken)
are the same, except instead of generating tokens, tokeneater is a callback
function to which the 5 fields described above are passed as 5 arguments,
each time a new token is found.sKa-Ping Yee <ping@lfw.org>sSGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettingeri����N(t*t_tCOMMENTttokenizetgenerate_tokenstNLt
untokenizeiicGsddj|�dS(Nt(t|t)(tjoin(tchoices((s /usr/lib64/python2.7/tokenize.pytgroup,scGst|�dS(NR(R(R((s /usr/lib64/python2.7/tokenize.pytany-scGst|�dS(Nt?(R(R((s /usr/lib64/python2.7/tokenize.pytmaybe.ss[ \f\t]*s	#[^\r\n]*s\\\r?\ns[a-zA-Z_]\w*s0[xX][\da-fA-F]+[lL]?s(0[oO][0-7]+)|(0[0-7]*)[lL]?s0[bB][01]+[lL]?s
[1-9]\d*[lL]?s[eE][-+]?\d+s\d+\.\d*s\.\d+s\d+s\d+[jJ]s[jJ]s[^'\\]*(?:\\.[^'\\]*)*'s[^"\\]*(?:\\.[^"\\]*)*"s%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''s%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""s[uUbB]?[rR]?'''s[uUbB]?[rR]?"""s([uUbB]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*'s([uUbB]?[rR]?"[^\n"\\]*(?:\\.[^\n"\\]*)*"s\*\*=?s>>=?s<<=?s<>s!=s//=?s[+\-*/%&|^=<>]=?t~s[][(){}]s\r?\ns[:;.,`@]s'[uUbB]?[rR]?'[^\n'\\]*(?:\\.[^\n'\\]*)*t's'[uUbB]?[rR]?"[^\n"\\]*(?:\\.[^\n"\\]*)*t"s
\\\r?\n|\Zs'''s"""sr'''sr"""su'''su"""sur'''sur"""sR'''sR"""sU'''sU"""suR'''suR"""sUr'''sUr"""sUR'''sUR"""sb'''sb"""sbr'''sbr"""sB'''sB"""sbR'''sbR"""sBr'''sBr"""sBR'''sBR"""trtRtutUtbtBsr'sr"sR'sR"su'su"sU'sU"sur'sur"sUr'sUr"suR'suR"sUR'sUR"sb'sb"sB'sB"sbr'sbr"sBr'sBr"sbR'sbR"sBR'sBR"it
TokenErrorcBseZRS((t__name__t
__module__(((s /usr/lib64/python2.7/tokenize.pyR�stStopTokenizingcBseZRS((RR(((s /usr/lib64/python2.7/tokenize.pyR�sc	CsA|\}}|\}}d||||t|t|�fGHdS(Ns%d,%d-%d,%d:	%s	%s(ttok_nametrepr(	ttypettokent	srow_scolt	erow_ecoltlinetsrowtscolterowtecol((s /usr/lib64/python2.7/tokenize.pyt
printtoken�scCs)yt||�Wntk
r$nXdS(s:
    The tokenize() function accepts two parameters: one representing the
    input stream, and one providing an output mechanism for tokenize().

    The first parameter, readline, must be a callable object which provides
    the same interface as the readline() method of built-in file objects.
    Each call to the function should return one line of input as a string.

    The second parameter, tokeneater, must also be a callable object. It is
    called once for each token, with five arguments, corresponding to the
    tuples generated by generate_tokens().
    N(t
tokenize_loopR(treadlinet
tokeneater((s /usr/lib64/python2.7/tokenize.pyR�s

cCs%xt|�D]}||�q
WdS(N(R(R*R+t
token_info((s /usr/lib64/python2.7/tokenize.pyR)�stUntokenizercBs,eZd�Zd�Zd�Zd�ZRS(cCsg|_d|_d|_dS(Nii(ttokenstprev_rowtprev_col(tself((s /usr/lib64/python2.7/tokenize.pyt__init__�s		cCsO|\}}||jks!t�||j}|rK|jjd|�ndS(Nt (R/tAssertionErrorR0R.tappend(R1tstarttrowtcolt
col_offset((s /usr/lib64/python2.7/tokenize.pytadd_whitespace�s

cCs�x�|D]�}t|�dkr3|j||�Pn|\}}}}}|j|�|jj|�|\|_|_|ttfkr|jd7_d|_qqWdj	|j�S(Niiit(
tlentcompatR:R.R5R/R0tNEWLINERR
(R1titerablettttok_typeR R6tendR#((s /usr/lib64/python2.7/tokenize.pyR�s

c
CsYt}g}|jj}|\}}|ttfkrC|d7}n|ttfkr^t}nt}x�|D]�}	|	d \}}|ttfkr�|d7}n|tkr�|r�d|}nt}nt}|t	kr�|j|�qknZ|t
kr	|j�qkn>|ttfkr$t}n#|rG|rG||d�t}n||�qkWdS(NR3ii����(tFalseR.R5tNAMEtNUMBERR>RtTruetSTRINGtINDENTtDEDENTtpop(
R1R R?t	startlinetindentsttoks_appendttoknumttokvalt
prevstringttok((s /usr/lib64/python2.7/tokenize.pyR=�s<
	


	

		(RRR2R:RR=(((s /usr/lib64/python2.7/tokenize.pyR-�s			cCst�}|j|�S(s�Transform tokens back into Python source code.

    Each element returned by the iterable must be a token sequence
    with at least two elements, a token number and token value.  If
    only two tokens are passed, the resulting output is poor.

    Round-trip invariant for full input:
        Untokenized source will match input source exactly

    Round-trip invariant for limited intput:
        # Output text will tokenize the back to the input
        t1 = [tok[:2] for tok in generate_tokens(f.readline)]
        newcode = untokenize(t1)
        readline = iter(newcode.splitlines(1)).next
        t2 = [tok[:2] for tok in generate_tokens(readline)]
        assert t1 == t2
    (R-R(R?tut((s /usr/lib64/python2.7/tokenize.pyR�s	c
csDd}}}tjdd}}d\}}d}dg}	x�y
|�}
Wntk
rfd}
nX|d7}dt|
�}}|r{|
s�td|
f�n|j|
�}|r|jd�}}t||
| |
||f||
fVd\}}d}q�|ra|
ddkra|
d	d
krat	||
|
|t|
�f|fVd}d}q@q�||
}||
}q@n`|dkr�|r�|
s�Pnd}xv||kr|
|dkr�|d7}n?|
|dkr�|t
dt
}n|
|d
krd}nP|d7}q�W||kr'Pn|
|dkr|
|dkr�|
|jd�}|t|�}t|||f||t|�f|
fVt
|
|||f|t|
�f|
fVq@t
tf|
|dk|
|||f|t|
�f|
fVq@n||	dkrI|	j|�t|
| |df||f|
fVnx�||	dkr�||	kr�tdd|||
f��n|	d }	td||f||f|
fVqLWn$|
s�td|dff�nd}x
||kr�tj|
|�}|r�|jd�\}}||f||f|}}}||krIq�n|
||!|
|}}||ks�|dkr�|dkr�t||||
fVq�|dkr�|dkr�t
nt||||
fVq�|dkr
|jd�s�t�t||||
fVq�|tkr�t|}|j|
|�}|rq|jd�}|
||!}t||||f|
fVq�||f}
|
|}|
}Pq�|tks�|d tks�|d tkr1|ddkr||f}
t|p�t|dp�t|d}|
|d}}|
}Pq�t||||
fVq�||krTt||||
fVq�|dkrid}q�|dkr�|d7}n|dkr�|d8}nt||||
fVq�t	|
|||f||df|
fV|d7}q�Wq@x2|	dD]&}td|df|dfdfVq�Wtd|df|dfdfVdS(sS
    The generate_tokens() generator requires one argment, readline, which
    must be a callable object which provides the same interface as the
    readline() method of built-in file objects. Each call to the function
    should return one line of input as a string.  Alternately, readline
    can be a callable function terminating with StopIteration:
        readline = open(myfile).next    # Example of alternate readline

    The generator produces 5-tuples with these members: the token type; the
    token string; a 2-tuple (srow, scol) of ints specifying the row and
    column where the token begins in the source; a 2-tuple (erow, ecol) of
    ints specifying the row and column where the token ends in the source;
    and the line on which the token was found. The line passed is the
    logical line; continuation lines are included.
    iRt
0123456789R;isEOF in multi-line stringi����s\
i����s\
R3s	ss#
t#s
i����s3unindent does not match any outer indentation levels
<tokenize>sEOF in multi-line statementt.s
iis\s([{s)]}N(R;i(R;i(tstringt
ascii_letterstNonet
StopIterationR<RtmatchRBRGt
ERRORTOKENttabsizetrstripRRR5RHtIndentationErrorRIt
pseudoprogtspanRER>tendswithR4t
triple_quotedtendprogst
single_quotedRDtOPt	ENDMARKER(R*tlnumtparenlevt	continuedt	namecharstnumcharstcontstrtneedconttcontlineRLR#tpostmaxtstrstarttendprogtendmatchRBtcolumnt
comment_tokentnl_postpseudomatchR6tsposteposR tinitialtindent((s /usr/lib64/python2.7/tokenize.pyRs�	



	&



	$
# 
'
' 


	


$t__main__(s'''s"""sr'''sr"""sR'''sR"""su'''su"""sU'''sU"""sur'''sur"""sUr'''sUr"""suR'''suR"""sUR'''sUR"""sb'''sb"""sB'''sB"""sbr'''sbr"""sBr'''sBr"""sbR'''sbR"""sBR'''sBR"""(RRsr'sr"sR'sR"su'su"sU'sU"sur'sur"sUr'sUr"suR'suR"sUR'sUR"sb'sb"sB'sB"sbr'sbr"sBr'sBr"sbR'sbR"sBR'sBR"((Kt__doc__t
__author__t__credits__RVtreR tdirtxt
startswitht__all__tN_TOKENSRRRRR
Rt
WhitespacetCommenttIgnoretNamet	Hexnumbert	Octnumbert	Binnumbert	Decnumbert	IntnumbertExponentt
PointfloattExpfloattFloatnumbert
ImagnumbertNumbertSingletDoubletSingle3tDouble3tTripletStringtOperatortBrackettSpecialtFunnyt
PlainTokentTokentContStrtPseudoExtrastPseudoTokentmaptcompilet	tokenprogR_tsingle3progtdouble3progRXRcRbR@RdR\t	ExceptionRRR(RR)R-RRRtsysR<targvtopenR*tstdin(((s /usr/lib64/python2.7/tokenize.pyt<module>s�
.



			
		

'#

		A		�

Zerion Mini Shell 1.0