Plan 9 from Bell Labs’s /usr/web/sources/contrib/bichued/root/sys/lib/python/token.pyc

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/d0Z0d1Z1d2Z2d3Z3d4Z4d5Z5d6Z6d7Z7hZ8xDe9�i:�D]3\Z;Z<e=e<�e=d�joe;e8e<<qfqfWd8�Z>d9�Z?d:�Z@d;�ZAeBd<joeA�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
|tjS(N(t	NT_OFFSET(tx((s/sys/lib/python/token.pyt
ISTERMINALLscCs
|tjS(N(R(R((s/sys/lib/python/token.pyt
ISNONTERMINALOscCs
|tjS(N(t	ENDMARKER(R((s/sys/lib/python/token.pytISEOFRscCs�ddk}ddk}|id}|o|dpd}d}t|�djo|d}nyt|�}Wn<tj
o0}|iidt|��|i	d�nX|i
�id�}|i�|i
d|i�}h}	xV|D]N}
|i|
�}|o2|idd	�\}}
t|
�}
||	|
<q��	i�}|i�yt|�}Wn<tj
o0}|iidt|��|i	d	�nX|i
�id�}|i�y&|id
�d}|id�}Wn0tj
o$|iid�|i	d
�nXg}x)|D]!}
|id|	|
|
f�q0W||||+yt|d�}Wn<tj
o0}|iidt|��|i	d�nX|idi|��|i�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/python/token.pytmainVsh




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/python/token.pys<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].