MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python38/lib/python3.8/site-packages/pycparser/__pycache__/plyparser.cpython-38.opt-1.pyc
U

��_:�@s4Gdd�de�ZGdd�de�ZGdd�de�ZdS)c@s&eZdZdZdZddd�Zdd�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�
/plyparser.py�__init__szCoord.__init__cCs(d|j|jf}|jr$|d|j7}|S)Nz%s:%sz:%sr)r�strrrr	�__str__sz
Coord.__str__)N)�__name__�
__module__�__qualname__�__doc__�	__slots__r
rrrrr	rs
rc@seZdZdS)�
ParseErrorN)r
rrrrrr	rsrc@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)Nr)rZclex�filename)r�linenorrrr	�_coord0s
�zPLYParser._coordcCstd||f��dS)Nz%s: %s)r)r�msgZcoordrrr	�_parse_error6szPLYParser._parse_error)N)r
rrrrrrrrr	r!s
rN)�objectr�	Exceptionrrrrrr	�<module>s