Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
=–[c@sadefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zd„Zd„Zd	S(
tCoordcBs)eZdZdZdd„Zd„ZRS(	sž Coordinates of a syntactic element. Consists of:
            - File name
            - Line number
            - (optional) column number, for the Lexer
    tfiletlinetcolumnt__weakref__cCs||_||_||_dS(N(RRR(tselfRRR((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt__init__s		cCs7d|j|jf}|jr3|d|j7}n|S(Ns%s:%ss:%s(RRR(Rtstr((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt__str__s	(sfileslinescolumns__weakref__N(t__name__t
__module__t__doc__t	__slots__tNoneRR(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyRst
ParseErrorcBseZRS((R	R
(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyRst	PLYParsercBs/eZd„Zdd„Zd„Zd„ZRS(cCsM|d}d„}d||f|_d||_t|j|j|ƒdS(sŽ Given a rule name, creates an optional ply.yacc rule
            for it. The name of the optional rule is
            <rulename>_opt
        t_optcSs|d|d<dS(Nii((Rtp((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pytoptrule)ss%s : empty
| %ssp_%sN(RR	tsetattrt	__class__(RtrulenametoptnameR((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt_create_opt_rule"s

	
cCstd|jjd|d|ƒS(NRRR(Rtclextfilename(RtlinenoR((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt_coord0scCsh|jjjjdd|j|ƒƒ}|dkr<d}n|j|ƒ|}|j|j|ƒ|ƒS(sÖ Returns the coordinates for the YaccProduction objet 'p' indexed
            with 'token_idx'. The coordinate includes the 'lineno' and
            'column'. Both follow the lex semantic, starting from 1.
        s
iiÿÿÿÿ(tlexertlexdatatrfindtlexposRR(RRt	token_idxtlast_crR((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt_token_coord6s
'	cCstd||fƒ‚dS(Ns%s: %s(R(Rtmsgtcoord((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt_parse_errorAsN(R	R
RR
RR"R%(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyR!s		cs‡fd†}|S(sÞ Decorator to create parameterized rules.

    Parameterized rule methods must be named starting with 'p_' and contain
    'xxx', and their docstrings may contain 'xxx' and 'yyy'. These will be
    replaced by the given parameter tuples. For example, ``p_xxx_rule()`` with
    docstring 'xxx_rule  : yyy' when decorated with
    ``@parameterized(('id', 'ID'))`` produces ``p_id_rule()`` with the docstring
    'id_rule  : ID'. Using multiple tuples produces multiple rules.
    cs
ˆ|_|S(N(t_params(t	rule_func(tparams(sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pytdecorateOs	((R(R)((R(sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt
parameterizedEs
cCshxat|ƒD]S}|jdƒr
t||ƒ}t|dƒr`t||ƒt||ƒq`q
q
W|S(s Class decorator to generate rules from parameterized rule templates.

    See `parameterized` for more information on parameterized rules.
    tp_R&(tdirt
startswithtgetattrthasattrtdelattrt_create_param_rules(tclst	attr_nametmethod((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyttemplateUs
cs|xuˆjD]j\}}‡fd†}ˆjjd|ƒjd|ƒ|_ˆjjd|ƒ|_t||j|ƒq
WdS(s Create ply.yacc rules based on a parameterized rule function

    Generates new methods (one per each pair of parameters) based on the
    template rule function `func`, and attaches them to `cls`. The rule
    function's parameters must be accessible via its `_params` attribute.
    csˆ||ƒdS(N((RR(tfunc(sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt
param_rulelstxxxtyyyN(R&RtreplaceR	R(R2R6R8R9R7((R6sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyR1cs
$N(tobjectRt	ExceptionRRR*R5R1(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/pycparser/plyparser.pyt<module>s
$