�
��c@s�dZdZdZdZdZdZdZdZdZd Z d
Z
dZdZd
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
iii
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.hsLib/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 LESSEQUALtGREATEREQUALtTILDEt
CIRCUMFLEXt LEFTSHIFTt
RIGHTSHIFTt
DOUBLESTARt PLUSEQUALtMINEQUALt STAREQUALt
SLASHEQUALtPERCENTEQUALt
AMPEREQUALt VBAREQUALtCIRCUMFLEXEQUALtLEFTSHIFTEQUALtRIGHTSHIFTEQUALtDOUBLESTAREQUALtDOUBLESLASHtDOUBLESLASHEQUALtATtOPt
ERRORTOKENtN_TOKENSRttok_nametglobalstitemst_namet_valuettypeRRRR.t__name__(((s/sys/lib/python/token.pys<module>s�
6
|