ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/__pycache__/token.cpython-37.pyc

B

�x�c��@sVdZddddgZdZdZdZdZd	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=Z:d>Z;d?Z<d@Z=dAdB�e>��?�D�Z@e�Ae@�B��dCd�ZCdDd�ZDdEd�ZEdFdG�ZFeGdHk�rReF�dIS)Jz!Token constants (from "token.h").�tok_name�
ISTERMINAL�
ISNONTERMINAL�ISEOF����������	�
���
������������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/�0�1�2�3�4�5�6�7�8�9�:�cCs*i|]"\}}t|t�r|�d�s||�qS)�_)�
isinstance�int�
startswith)�.0�name�value�rH�*/opt/alt/python37/lib64/python3.7/token.py�
<dictcomp>NsrJcCs|tkS)N)�	NT_OFFSET)�xrHrHrIrSscCs|tkS)N)rK)rLrHrHrIrVscCs|tkS)N)�	ENDMARKER)rLrHrHrIrYsc
Cs�ddl}ddl}|jdd�}|r*|dp,d}d}t|�dkrF|d}yt|�}Wn@tk
r�}z"|j�dt|��|�	d�Wdd}~XYnX|�|�
��d�}WdQRX|�d|j
�}|�d|j
�}	i}
d}xr|D]j}|�|�}
|
�r|
�dd	�\}}t|�}d
|i|
|<|}q�|	�|�}|r�|dk	r�|�d�}||
|d<q�Wt|
���}yt|�}WnBtk
�r�}z"|j�dt|��|�	d	�Wdd}~XYnX|�|�
��d�}WdQRXy|�d�d}|�d
�}Wn,tk
�r|j�d�|�	d�YnXg}xL|D]D}|�d|
|d
|f�d|
|k�r|�d|
|d��qW||||�<yt|d�}WnBtk
�r�}z"|j�dt|��|�	d�Wdd}~XYnX|�|�d�|��WdQRXdS)NrrzInclude/token.hzLib/token.pyzI/O error: %s
�
z>#define[ \t][ \t]*([A-Z0-9][A-Z0-9_]*)[ \t][ \t]*([0-9][0-9]*)z^\s*/\*\s*(.+?)\s*\*/\s*$r�token�commentz#--start constants--z#--end constants--z&target does not contain format markersrz%s = %dz# %s�wr	)�re�sys�argv�len�open�OSError�stdout�write�str�exit�read�split�compile�
IGNORECASE�match�grouprC�sorted�keys�stderr�index�
ValueError�append�join)rRrS�argsZ
inFileNameZoutFileName�fp�err�lines�progZ
comment_regex�tokensZprev_val�liner`rF�valZ
comment_matchrPrc�format�start�end�keyrHrHrI�_main]sx




ru�__main__N)H�__doc__�__all__rM�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�ATEQUAL�RARROW�ELLIPSIS�OP�
ERRORTOKEN�COMMENT�NL�ENCODINGZN_TOKENSrK�globals�itemsr�extend�valuesrrrru�__name__rHrHrHrI�<module>s�
B


Zerion Mini Shell 1.0