AlkantarClanX12

Your IP : 13.59.112.169


Current Path : /proc/self/root/usr/lib/python3.6/site-packages/pycparser/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3.6/site-packages/pycparser/__pycache__/plyparser.cpython-36.pyc

3

g�wU:�@s4Gdd�de�ZGdd�de�ZGdd�de�ZdS)c@s&eZdZdZdZddd�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	rrrrrrs
rc@seZdZdS)�
ParseErrorN)rr
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)rr
rrrrrrrrr!s
rN)�objectr�	Exceptionrrrrrr�<module>s