Sindbad~EG File Manager
3
g�wU:�@s4Gdd�de�ZGdd�de�ZGdd�de�ZdS)c@s&eZdZdZdZddd�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__NcCs||_||_||_dS)N)rrr)�selfrrr�r�/usr/lib/python3.6/plyparser.py�__init__szCoord.__init__cCs(d|j|jf}|jr$|d|j7}|S)Nz%s:%sz:%s)rrr)r�strrrr�__str__sz
Coord.__str__)rrrr)N)�__name__�
__module__�__qualname__�__doc__� __slots__r rrrrrrs
rc@seZdZdS)�
ParseErrorN)rr
rrrrrrsrc@s&eZdZdd�Zddd�Zdd�ZdS) � PLYParsercCs<|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_optcSs|d|d<dS)N��r)r�prrr�optrule)sz+PLYParser._create_opt_rule.<locals>.optrulez%s : empty
| %szp_%sN)rr�setattr� __class__)rZrulenameZoptnamerrrr�_create_opt_rule"s
zPLYParser._create_opt_ruleNcCst|jj||d�S)N)rrr)rZclex�filename)r�linenorrrr�_coord0szPLYParser._coordcCstd||f��dS)Nz%s: %s)r)r�msgZcoordrrr�_parse_error6szPLYParser._parse_error)N)rr
rrrrrrrrr!s
rN)�objectr� Exceptionrrrrrr�<module>s
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists