https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/lib/python2.7/site-packages/pycparser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python2.7/site-packages/pycparser/plyparser.pyc
�
CrX[c@smddlZdefd��YZdefd��YZdefd��YZd�Zd	�Zd
�ZdS(i����NtCoordcBs)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((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt__init__s		cCs7d|j|jf}|jr3|d|j7}n|S(Ns%s:%ss:%s(RRR(Rtstr((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt__str__s	(sfileslinescolumns__weakref__N(t__name__t
__module__t__doc__t	__slots__tNoneRR(((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyR
st
ParseErrorcBseZRS((R	R
(((s7/usr/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((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pytoptrule*ss%s : empty
| %ssp_%sN(RR	tsetattrt	__class__(RtrulenametoptnameR((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt_create_opt_rule#s

	
cCstd|jjd|d|�S(NRRR(Rtclextfilename(RtlinenoR((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt_coord1s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((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt_token_coord7s
'	cCstd||f��dS(Ns%s: %s(R(Rtmsgtcoord((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt_parse_errorBsN(R	R
RR
RR"R%(((s7/usr/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(s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pytdecoratePs	((R(R)((R(s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt
parameterizedFs
cCs�t}x�t|�D]�}|jd�rt||�}t|d�r�t||�|jdk	rrt||�q�|s�t	j
dtdd�t}q�q�qqW|S(s� Class decorator to generate rules from parameterized rule templates.

    See `parameterized` for more information on parameterized rules.
    tp_R&s@parsing methods must have __doc__ for pycparser to work properlyt
stackleveliN(
tFalsetdirt
startswithtgetattrthasattrtdelattrRR
t_create_param_rulestwarningstwarntRuntimeWarningtTrue(tclstissued_nodoc_warningt	attr_nametmethod((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyttemplateVs
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(s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt
param_rule}stxxxtyyyN(R&RtreplaceR	R(R8R=R?R@R>((R=s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyR3ts
$(	R4tobjectRt	ExceptionRRR*R<R3(((s7/usr/lib/python2.7/site-packages/pycparser/plyparser.pyt<module>s$		

https://t.me/AnonymousX5 - 2025