Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
pycparser
/
__pycache__
/
File Content:
plyparser.cpython-35.opt-1.pyc
Թ�X: � @ sF Gd d � d e � Z Gd d � d e � Z Gd d � d e � Z d S)c @ s7 e Z d Z d Z d Z d d d � Z d d � Z d S)�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 � /plyparser.py�__init__ s zCoord.__init__c C s4 d | j | j f } | j r0 | d | j 7} | S)Nz%s:%sz:%s)r r r )r �strr r r �__str__ s z Coord.__str__)zfilezlinezcolumnz__weakref__)�__name__� __module__�__qualname__�__doc__� __slots__r r r r r r r s r c @ s e Z d Z d S)� ParseErrorN)r r r r r r r r s r c @ s7 e Z d Z d d � Z d d d � Z d d � Z d S)� PLYParserc C sP | d } d d � } d | | f | _ d | | _ t | j | j | � d S)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"