Repository URL to install this package:
|
Version:
2.18 ▾
|
pycparser
/
plyparser.pyc
|
|---|
ó
õ±ÂXc @ sa d e f d YZ d e f d YZ d e f d YZ d Z d Z d Z d S(
t Coordc B s) e Z d Z d Z d d Z d Z RS( s Coordinates of a syntactic element. Consists of:
- File name
- Line number
- (optional) column number, for the Lexer
t filet linet columnt __weakref__c C s | | _ | | _ | | _ d S( N( R R R ( t selfR R R ( ( s ../pycparser/plyparser.pyt __init__ s c C s7 d | j | j f } | j r3 | d | j 7} n | S( Ns %s:%ss :%s( R R R ( R t str( ( s ../pycparser/plyparser.pyt __str__ s ( R R R R N( t __name__t
__module__t __doc__t __slots__t NoneR R ( ( ( s ../pycparser/plyparser.pyR s t
ParseErrorc B s e Z RS( ( R R
( ( ( s ../pycparser/plyparser.pyR s t PLYParserc B s/ e Z d Z d d Z d Z d Z RS( c C sM | d } d } d | | f | _ d | | _ t | j | j | d S( s Given a rule name, creates an optional ply.yacc rule
for it. The name of the optional rule is
<rulename>_opt
t _optc S s | d | d <d S( Ni i ( ( R t p( ( s ../pycparser/plyparser.pyt optrule) s s %s : empty
| %ss p_%sN( R R t setattrt __class__( R t rulenamet optnameR ( ( s ../pycparser/plyparser.pyt _create_opt_rule" s
c C s t d | j j d | d | S( NR R R ( R t clext filename( R t linenoR ( ( s ../pycparser/plyparser.pyt _coord0 s c C sh | j j j j d d | j | } | d k r<