OwlCyberSecurity - MANAGER
Edit File: plyparser.cpython-36.opt-1.pyc
3 g�wU:������������������@���s4���G�d�d��de��ZG�dd��de�ZG�dd��de��ZdS�)c���������������@���s&���e�Zd�ZdZdZddd�Zd d ��ZdS�) �Coordz� Coordinates of a syntactic element. Consists of: - File name - Line number - (optional) column number, for the Lexer �file�line�column�__weakref__Nc�������������C���s���||�_�||�_||�_d�S�)N)r���r���r���)�selfr���r���r�����r����/usr/lib/python3.6/plyparser.py�__init__���s����zCoord.__init__c�������������C���s(���d|�j�|�jf�}|�jr$|d|�j�7�}|S�)Nz%s:%sz:%s)r���r���r���)r����strr���r���r����__str__���s�����z Coord.__str__)r���r���r���r���)N)�__name__� __module__�__qualname__�__doc__� __slots__r ���r���r���r���r���r���r������s��� r���c���������������@���s���e�Zd�ZdS�)� ParseErrorN)r���r ���r���r���r���r���r���r������s����r���c���������������@���s&���e�Zd�Zdd��Zddd�Zdd��ZdS�) � PLYParserc�������������C���s<���|d�}dd��}d||f�|_�d|�|_t|�j|j|��dS�)z� Given a rule name, creates an optional ply.yacc rule for it. The name of the optional rule is <rulename>_opt Z_optc�������������S���s���|d�|d<�d�S�)N���������r���)r����pr���r���r����optrule)���s����z+PLYParser._create_opt_rule.<locals>.optrulez%s : empty | %szp_%sN)r���r����setattr� __class__)r���ZrulenameZoptnamer���r���r���r����_create_opt_rule"���s ���� zPLYParser._create_opt_ruleNc�������������C���s���t�|�jj||d�S�)N)r���r���r���)r���Zclex�filename)r����linenor���r���r���r����_coord0���s����zPLYParser._coordc�������������C���s���t�d||f���d�S�)Nz%s: %s)r���)r����msgZcoordr���r���r����_parse_error6���s����zPLYParser._parse_error)N)r���r ���r���r���r���r���r���r���r���r���r���!���s��� r���N)�objectr���� Exceptionr���r���r���r���r���r����<module>���s���