Your IP : 3.144.4.50


Current Path : /opt/alt/python34/lib64/python3.4/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/__pycache__/token.cpython-34.pyc

�
e f��@s�dZddddgZdZdZdZdZd	Zd
ZdZdZ	d
Z
dZdZ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;Z8d<Z9d=d>�e:�j;�D�Z<ej=e<j>��d?d�Z?d@d�Z@dAd�ZAdBdC�ZBeCdDkr�eB�ndES)Fz!Token constants (from "token.h").�tok_name�
ISTERMINAL�
ISNONTERMINAL�ISEOF����������	�
���
������������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/�0�1�2�3�4�5�6�cCs>i|]4\}}t|t�r|jd�r||�qS)�_)�
isinstance�int�
startswith)�.0�name�value�rD�*/opt/alt/python34/lib64/python3.4/token.py�
<dictcomp>Gs		rFcCs
|tkS)N)�	NT_OFFSET)�xrDrDrErLscCs
|tkS)N)rG)rHrDrDrErOscCs
|tkS)N)�	ENDMARKER)rHrDrDrErRsc5Csddl}ddl}|jdd�}|r;|dp>d}d}t|�dkrf|d}nyt|�}WnLtk
r�}z,|jjdt|��|j	d�WYdd}~XnX|j
�jd�}|j�|j
d|j�}i}	xT|D]L}
|j|
�}|r|jdd�\}}
t|
�}
||	|
<qqWt|	j��}yt|�}WnLtk
r�}z,|jjdt|��|j	d�WYdd}~XnX|j
�jd�}|j�y&|jd	�d}|jd
�}Wn/tk
r=|jjd�|j	d�YnXg}x)|D]!}
|jd
|	|
|
f�qKW||||�<yt|d�}WnLtk
r�}z,|jjdt|��|j	d�WYdd}~XnX|jdj|��|j�dS)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 = %d�wr	)�re�sys�argv�len�open�OSError�stdout�write�str�exit�read�split�close�compile�
IGNORECASE�match�groupr?�sorted�keys�stderr�index�
ValueError�append�join)rLrM�args�
inFileName�outFileName�fp�err�lines�prog�tokens�liner[rB�valr^�format�start�endrDrDrE�_mainVsb
 

 


 rq�__main__N)D�__doc__�__all__rI�NAME�NUMBER�STRING�NEWLINE�INDENT�DEDENT�LPAR�RPAR�LSQB�RSQB�COLON�COMMA�SEMI�PLUS�MINUS�STAR�SLASH�VBAR�AMPER�LESS�GREATER�EQUAL�DOT�PERCENT�LBRACE�RBRACE�EQEQUAL�NOTEQUAL�	LESSEQUAL�GREATEREQUAL�TILDE�
CIRCUMFLEX�	LEFTSHIFT�
RIGHTSHIFT�
DOUBLESTAR�	PLUSEQUAL�MINEQUAL�	STAREQUAL�
SLASHEQUAL�PERCENTEQUAL�
AMPEREQUAL�	VBAREQUAL�CIRCUMFLEXEQUAL�LEFTSHIFTEQUAL�RIGHTSHIFTEQUAL�DOUBLESTAREQUAL�DOUBLESLASH�DOUBLESLASHEQUAL�AT�RARROW�ELLIPSIS�OP�
ERRORTOKEN�N_TOKENSrG�globals�itemsr�extend�valuesrrrrq�__name__rDrDrDrE�<module>s�
	5

?>