Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/token.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@s�dZdZdZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Z d!Z!d"Z"d#Z#d$Z$d%Z%d&Z&d'Z'd(Z(d)Z)d*Z*d+Z+d,Z,d-Z-d.Z.d/Z/d0Z0d1Z1d2Z2d3Z3d4Z4d5Z5d6Z6d7Z7iZ8xBe9�j:�D]1\Z;Z<e=e<�e=d�krfe;e8e<<qfqfW[;[<d8�Z>d9�Z?d:�Z@d;�ZAeBd<kr�eA�nd=S(>s!Token constants (from "token.h").iiiiiiiiii	i
iii
iiiiiiiiiiiiiiiiiii i!i"i#i$i%i&i'i(i)i*i+i,i-i.i/i0i1i2i3i4i5icCs
|tkS(N(t	NT_OFFSET(tx((s/sys/lib/python2.7/token.pyt
ISTERMINALKscCs
|tkS(N(R(R((s/sys/lib/python2.7/token.pyt
ISNONTERMINALNscCs
|tkS(N(t	ENDMARKER(R((s/sys/lib/python2.7/token.pytISEOFQscCs�ddl}ddl}|jd}|r5|dp8d}d}t|�dkr`|d}nyt|�}Wn:tk
r�}|jjdt|��|j	d�nX|j
�jd�}|j�|j
d|j�}i}	xT|D]L}
|j|
�}|r�jdd	�\}}
t|
�}
||	|
<q��|	j�}|j�yt|�}Wn:tk
r�}|jjdt|��|j	d	�nX|j
�jd�}|j�y&|jd
�d}|jd�}Wn.tk
r|jjd�|j	d
�nXg}x)|D]!}
|jd|	|
|
f�q$W||||+yt|d�}Wn:tk
r�}|jjdt|��|j	d�nX|jdj|��|j�dS(Ni�iisInclude/token.hsLib/token.pysI/O error: %s
s
s:#define[ 	][ 	]*([A-Z0-9][A-Z0-9_]*)[ 	][ 	]*([0-9][0-9]*)is#--start constants--s#--end constants--s&target does not contain format markersis%s = %dtwi(tretsystargvtlentopentIOErrortstdouttwritetstrtexittreadtsplittclosetcompilet
IGNORECASEtmatchtgrouptinttkeystsorttstderrtindext
ValueErrortappendtjoin(RRtargst
inFileNametoutFileNametfpterrtlinestprogttokenstlineRtnametvalRtformattstarttend((s/sys/lib/python2.7/token.pytmainUsd








t__main__N(Ct__doc__RtNAMEtNUMBERtSTRINGtNEWLINEtINDENTtDEDENTtLPARtRPARtLSQBtRSQBtCOLONtCOMMAtSEMItPLUStMINUStSTARtSLASHtVBARtAMPERtLESStGREATERtEQUALtDOTtPERCENTt	BACKQUOTEtLBRACEtRBRACEtEQEQUALtNOTEQUALt	LESSEQUALtGREATEREQUALtTILDEt
CIRCUMFLEXt	LEFTSHIFTt
RIGHTSHIFTt
DOUBLESTARt	PLUSEQUALtMINEQUALt	STAREQUALt
SLASHEQUALtPERCENTEQUALt
AMPEREQUALt	VBAREQUALtCIRCUMFLEXEQUALtLEFTSHIFTEQUALtRIGHTSHIFTEQUALtDOUBLESTAREQUALtDOUBLESLASHtDOUBLESLASHEQUALtATtOPt
ERRORTOKENtN_TOKENSRttok_nametglobalstitemst_namet_valuettypeRRRR.t__name__(((s/sys/lib/python2.7/token.pyt<module>s�
				6

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].