3 \ @sRdZddddgZdZdZdZdZd Zd Zd Zd Z d Z dZ dZ dZ dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd!Zd"Zd#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,d0Z-d1Z.d2Z/d3Z0d4Z1d5Z2d6Z3d7Z4d8Z5d9Z6d:Z7d;Z8dZ;d?ZDZ?ej@e?jAdBdZBdCdZCdDdZDdEdFZEeFdGkrNeEdHS)Iz!Token constants (from "token.h").tok_name ISTERMINAL ISNONTERMINALISEOF  !"#$%&'()*+,-./0123456789cCs,i|]$\}}t|tr|jd r||qS)_) isinstanceint startswith).0namevaluerG/usr/lib64/python3.6/token.py JsrIcCs|tkS)N) NT_OFFSET)xrGrGrHrOscCs|tkS)N)rJ)rKrGrGrHrRscCs|tkS)N) ENDMARKER)rKrGrGrHrUscJCspddl}ddl}|jdd}|r*|dp,d}d}t|dkrF|d}y t|}Wn@tk r}z$|jjdt||j dWYdd}~XnX||j j d}WdQRX|j d|j }i} x:|D]2} |j| } | r| jdd\} } t| } | | | <qWt| j}y t|}WnBtk rZ}z$|jjdt||j dWYdd}~XnX||j j d}WdQRXy|jd d}|jd }Wn,tk r|jjd |j d YnXg}x$|D]} |jd | | | fqW||||<yt|d}WnBtk rJ}z$|jjdt||j dWYdd}~XnX||jdj|WdQRXdS)NrrzInclude/token.hz Lib/token.pyzI/O error: %s  z:#define[ ][ ]*([A-Z0-9][A-Z0-9_]*)[ ][ ]*([0-9][0-9]*)rz#--start constants--z#--end constants--z&target does not contain format markersrz%s = %dwr )resysargvlenopenOSErrorstdoutwritestrexitreadsplitcompile IGNORECASEmatchgrouprBsortedkeysstderrindex ValueErrorappendjoin)rOrPargs inFileName outFileNamefperrlinesprogtokensliner]rEvalr`formatstartendrGrGrH_mainYsb          rs__main__N)G__doc____all__rLNAMENUMBERSTRINGNEWLINEINDENTDEDENTLPARRPARLSQBRSQBCOLONCOMMASEMIPLUSMINUSSTARSLASHVBARAMPERLESSGREATEREQUALDOTPERCENTLBRACERBRACEEQEQUALNOTEQUAL LESSEQUAL GREATEREQUALTILDE CIRCUMFLEX LEFTSHIFT RIGHTSHIFT DOUBLESTAR PLUSEQUALMINEQUAL STAREQUAL SLASHEQUAL PERCENTEQUAL AMPEREQUAL VBAREQUALCIRCUMFLEXEQUALLEFTSHIFTEQUALRIGHTSHIFTEQUALDOUBLESTAREQUAL DOUBLESLASHDOUBLESLASHEQUALATATEQUALRARROWELLIPSISOPAWAITASYNC ERRORTOKENN_TOKENSrJglobalsitemsrextendvaluesrrrrs__name__rGrGrGrHs 5