403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/cfamily.cpython-39.opt-2.pyc
a

�ab�7�@s�ddlZddlmZddlmZmZmZmZmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZddlmZe�e�ZeegefZe�d�Ze�d	�Ze�d
�Ze�d�Ze�d�Ze�d
�Ze�d�Z e�d�Z!e�d�Z"e�d�Z#e�d�Z$edd�dd�Z%Gdd�de&�Z'Gdd�d�Z(Gdd�de(�Z)Gdd�de)�Z*Gdd�de(�Z+Gd d!�d!e)�Z,Gd"d#�d#e)�Z-Gd$d%�d%e)�Z.Gd&d'�d'e(�Z/Gd(d)�d)e&�Z0Gd*d+�d+e&�Z1Gd,d-�d-�Z2dS).�N��deepcopy)�Any�Callable�List�Match�Optional�Pattern�Tuple�Union)�nodes)�TextElement)�Config)�loggingz(?u)\s+z(@[a-zA-Z0-9_])[a-zA-Z0-9_]*\ba
(?x)
    (   # This 'extends' _anon_identifier_re with the ordinary identifiers,
        # make sure they are in sync.
        (~?\b[a-zA-Z_])  # ordinary identifiers
    |   (@[a-zA-Z0-9_])  # our extension for names of anonymous entities
    )
    [a-zA-Z0-9_]*\b
z[1-9][0-9]*(\'[0-9]+)*z0[0-7]*(\'[0-7]+)*z"0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*z0[bB][01]+(\'[01]+)*a%(?x)
    # unsigned and/or (long) long, in any order, but at least one of them
    (
        ([uU]    ([lL]  |  (ll)  |  (LL))?)
        |
        (([lL]  |  (ll)  |  (LL))    [uU]?)
    )\b
    # the ending word boundary is important for distinguishing
    # between suffixes and UDLs in C++
a(?x)
    [+-]?(
    # decimal
      ([0-9]+(\'[0-9]+)*[eE][+-]?[0-9]+(\'[0-9]+)*)
    | (([0-9]+(\'[0-9]+)*)?\.[0-9]+(\'[0-9]+)*([eE][+-]?[0-9]+(\'[0-9]+)*)?)
    | ([0-9]+(\'[0-9]+)*\.([eE][+-]?[0-9]+(\'[0-9]+)*)?)
    # hex
    | (0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*[pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)
    | (0[xX]([0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?\.
        [0-9a-fA-F]+(\'[0-9a-fA-F]+)*([pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?)
    | (0[xX][0-9a-fA-F]+(\'[0-9a-fA-F]+)*\.([pP][+-]?[0-9a-fA-F]+(\'[0-9a-fA-F]+)*)?)
    )
z[fFlL]\bz�(?x)
    ((?:u8)|u|U|L)?
    '(
      (?:[^\\'])
    | (\\(
        (?:['"?\\abfnrtv])
      | (?:[0-7]{1,3})
      | (?:x[0-9a-fA-F]{2})
      | (?:u[0-9a-fA-F]{4})
      | (?:U[0-9a-fA-F]{8})
      ))
    )'
)�mode�returncCs|dvrtd|��dS)N)Z
lastIsNameZ
noneIsNameZmarkTypeZmarkNameZparamZudlz!Description mode '%s' is invalid.)�	Exception)r�r�7/usr/lib/python3.9/site-packages/sphinx/util/cfamily.py�verify_description_modePsrc@seZdZdS)�NoOldIdErrorN��__name__�
__module__�__qualname__rrrrrUsrc@szeZdZUeed�dd�ZdZegefe	d<ed�dd�Z
eed	�d
d�Z
ed�dd
�Zed�dd�Zed�dd�ZdS)�ASTBaseBase)�otherrcCs\t|�t|�urdSz.|j��D]\}}|t||�kr WdSq WntyVYdS0dS)NFT)�type�__dict__�items�getattr�AttributeError)�selfr�key�valuerrr�__eq__[szASTBaseBase.__eq__N�__hash__�rcCst|�S�Nr�r"rrr�clonehszASTBaseBase.clone��	transformrcCstt|���dSr(��NotImplementedError�repr�r"r,rrr�
_stringifykszASTBaseBase._stringifycCs|�dd��S)NcSst|�Sr()�str��astrrr�<lambda>o�z%ASTBaseBase.__str__.<locals>.<lambda>�r1r)rrr�__str__nszASTBaseBase.__str__cCs|�dd��S)NcSs|��Sr()�get_display_stringr3rrrr5rr6z0ASTBaseBase.get_display_string.<locals>.<lambda>r7r)rrrr9qszASTBaseBase.get_display_stringcCsd|jjS)Nz<%s>)�	__class__rr)rrr�__repr__tszASTBaseBase.__repr__)rrrr�boolr%r&r�int�__annotations__r*�StringifyTransformr2r1r8r9r;rrrrrZs
rc@seZdZedd�dd�ZdS)�ASTAttributeN��signodercCstt|���dSr(r-�r"rBrrr�describe_signature}szASTAttribute.describe_signature)rrrr
rDrrrrr@|sr@c@s<eZdZedd�dd�Zeed�dd�Zedd�d	d
�ZdS)�ASTCPPAttributeN)�argrcCs
||_dSr(�rF)r"rFrrr�__init__�szASTCPPAttribute.__init__r+cCsd|jdS)Nz[[z]]rGr0rrrr1�szASTCPPAttribute._stringifyrAcCst|�}|�t�||��dSr(�r2�appendr�Text�r"rBZtxtrrrrD�sz"ASTCPPAttribute.describe_signature�	rrrr2rHr?r1r
rDrrrrrE�srEc@s2eZdZeeddd�dd�Zeed�dd�ZdS)	�ASTGnuAttribute�ASTBaseParenExprListN)�name�argsrcCs||_||_dSr()rPrQ)r"rPrQrrrrH�szASTGnuAttribute.__init__r+cCs(|jg}|jr|�||j��d�|�S)N�)rPrQrJ�join)r"r,�resrrrr1�szASTGnuAttribute._stringify)rrrr2rrHr?r1rrrrrN�srNc@s@eZdZeedd�dd�Zeed�dd�Ze	dd�d	d
�Z
dS)�ASTGnuAttributeListN)�attrsrcCs
||_dSr()rV)r"rVrrrrH�szASTGnuAttributeList.__init__r+cCsJdg}d}|jD]$}|s"|�d�d}|�||��q|�d�d�|�S)Nz__attribute__((Tz, Fz))rR)rVrJrS)r"r,rT�first�attrrrrr1�s


zASTGnuAttributeList._stringifyrAcCst|�}|�t�||��dSr(rIrLrrrrD�sz&ASTGnuAttributeList.describe_signature)rrrrrNrHr?r2r1r
rDrrrrrU�srUc@s<eZdZedd�dd�Zeed�dd�Zedd�d	d
�ZdS)�ASTIdAttributeN)�idrcCs
||_dSr(�rZ)r"rZrrrrH�szASTIdAttribute.__init__r+cCs|jSr(r[r0rrrr1�szASTIdAttribute._stringifyrAcCs|�t�|j|j��dSr()rJrrKrZrCrrrrD�sz!ASTIdAttribute.describe_signaturerMrrrrrY�srYc@s>eZdZeedd�dd�Zeed�dd�Zedd�d	d
�ZdS)�ASTParenAttributeN)rZrFrcCs||_||_dSr(�rZrF)r"rZrFrrrrH�szASTParenAttribute.__init__r+cCs|jd|jdS)N�(�)r]r0rrrr1�szASTParenAttribute._stringifyrAcCst|�}|�t�||��dSr(rIrLrrrrD�sz$ASTParenAttribute.describe_signaturerMrrrrr\�sr\c@seZdZdS)rONrrrrrrO�srOc@seZdZdS)�$UnsupportedMultiCharacterCharLiteralNrrrrrr`�sr`c@seZdZdS)�DefinitionErrorNrrrrrra�srac@s�eZdZeeejeeefefddd�dd�Z	e
eeed�dd�Z
eed	�d
d��Zedd�d
d�Zedd�dd�Zedd�dd�Zeed�dd�Zeed�dd�Zeed�dd�Zed	�dd�Zeed�dd�Zeed�d d!�Zeed	�d"d#��Zeed	�d$d%��Zeed	�d&d'��Zed	�d(d)�Zd*d+�edd,�d-d.�Zed/d0��Z ed1d2��Z!e
eed3�d4d5�Z"e#e$d	�d6d7�Z%e&d	�d8d9�Z'dS):�
BaseParserrN)�
definition�location�configrcCsD|��|_||_||_d|_t|j�|_d|_d|_g|_	d|_
dS)Nr)rNT)�striprcrdre�pos�len�end�
last_match�_previous_state�otherErrorsZallowFallbackExpressionParsing)r"rcrdrerrrrH�s
zBaseParser.__init__)�errors�headerrcCs�t|�dkrHt|�dkr4t|dt|dd��Stt|dd��S|dg}|D]�}t|d�dkr�d}|�|d�|�d�t|d��d�D]0}t|�dkr�q�|�|�|�|�|�d�q�qT|�t|d��qTtd�|��S)N�r�
z  z:
rR)rhrar2rJ�splitrS)r"rmrn�result�e�indent�linerrr�_make_multi_error�s$


zBaseParser._make_multi_errorr'cCst�dSr(�r.r)rrr�languageszBaseParser.language)�msgrcCs&d|jd}td||j|f�dS)N�-�^z%s
%s
%s)rg�printrc)r"ry�	indicatorrrr�statusszBaseParser.statuscCslg}d|jd}td|j||j|j|f�}|�|df�|jD]}|�|df�qBg|_|�|d��dS)Nrzr{z2Invalid %s declaration: %s [error at %d]
  %s
  %sz
Main errorzPotential other errorrR)rgrarxrcrJrlrv)r"ryrmr}ZexMain�errrrr�fail	s��
zBaseParser.failcCstj||jd�dS)N)rd)�loggerZwarningrd)r"ryrrr�warnszBaseParser.warn)�regexrcCs>|�|j|j�}|dur:|j|jf|_|��|_||_dSdS�NTF)�matchrcrgrjrkri)r"r�r�rrrr�s
zBaseParser.match)�stringrcCs8t|�}|j|j|j|�|kr4|j|7_dSdSr�)rhrcrg)r"r�Zstrlenrrr�skip_string!s
zBaseParser.skip_string)�wordrcCs|�t�dt�|���S)Nz\b%s\b)r��re�compile�escape�r"r�rrr�	skip_word(szBaseParser.skip_wordcCs
|�t�Sr()r��_whitespace_rer)rrr�skip_ws+szBaseParser.skip_wscCs|�|�r|��dSdSr�)r�r�r�rrr�skip_word_and_ws.s
zBaseParser.skip_word_and_wscCs|�|�r|��dSdSr�)r�r�)r"r�rrr�skip_string_and_ws4s
zBaseParser.skip_string_and_wscCs|j|jkSr()rgrir)rrr�eof:szBaseParser.eofcCs(z|j|jWSty"YdS0dS)NZEOF)rcrg�
IndexErrorr)rrr�current_char>szBaseParser.current_charcCs|jdur|j��SdSdSr()rj�groupr)rrr�matched_textEs

zBaseParser.matched_textcCs|j|jd�}|j|_|Sr()rcrgri)r"�rvrrr�	read_restLszBaseParser.read_restF)�allowSemicolon)r�rcCsF|��|r2|jsB|j|jd�dkrB|�d�n|jsB|�d�dS)N�;z Expected end of definition or ;.zExpected end of definition.)r�r�rcrgr�)r"r�rrr�
assert_endQszBaseParser.assert_endcCst�dSr(rwr)rrr�
id_attributes\szBaseParser.id_attributescCst�dSr(rwr)rrr�paren_attributes`szBaseParser.paren_attributes)rircCs�dddd�}|j}g}|js�t|�dkr4|j|vr4q�|j|��vrT|�||j�n>t|�dkrx|j|dkrx|��n|jdvr�|�d|j�|jd	7_q|jr�|�d
|�|j||j�S)Nr_�]�})r^�[�{r���z)]}z&Unexpected '%s' in balanced-token-seq.roz8Could not find end of balanced-token-seq starting at %d.)	rgr�rhr��keysrJ�popr�rc)r"riZbrackets�startPosZsymbolsrrr�_parse_balanced_token_seqds$

�z$BaseParser._parse_balanced_token_seqcCs�|��|j}|�d�rh|�d�s*||_n>|jdgd�}|�d�sL|�d�|�d�s`|�d�t|�S|�d��r|�d�s�|�d�|�d�s�|�d	�g}|�t	�r�|j
}|��}|�t
||��|�d
�r�q�q�|�d�r�q�q�|�d�q�|�d��s|�d
�t|�S|jD]}|�|��rt|�S�q|jD]Z}|�|��sN�q:|�d��sd|�d�|jdgd�}|�d��s�|�d�t||�SdS)Nr�r�)riz!Expected ']' in end of attribute.z-Expected ']' in end of attribute after [[...]Z
__attribute__r^z#Expected '(' after '__attribute__'.z$Expected '(' after '__attribute__('.�,r_z2Expected identifier, ')', or ',' in __attribute__.z(Expected ')' after '__attribute__((...)'z0Expected '(' after user-defined paren-attribute.z1Expected ')' to end user-defined paren-attribute.)r�rgr�r�r�r�rEr�r��
identifier_rer��_parse_paren_expression_listrJrNrUr�rYr�r\)r"r�rFrVrPZexprsrZrrr�_parse_attributexsT

















zBaseParser._parse_attributecCst�dSr(rwr)rrrr��sz'BaseParser._parse_paren_expression_list)(rrrr2rrZNoder
r=rHrrrarv�propertyrxr~r�r�r	r<r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr@r�rOr�rrrrrb�s>�	

8rb)3r��copyr�typingrrrrrr	r
rZdocutilsrZdocutils.nodesr
Z
sphinx.configrZsphinx.utilrZ	getLoggerrr�r2r?r�r�Zanon_identifier_rer�Zinteger_literal_reZoctal_literal_reZhex_literal_reZbinary_literal_reZintegers_literal_suffix_reZfloat_literal_reZfloat_literal_suffix_reZchar_literal_rerrrrr@rErNrUrYr\rOr`rarbrrrr�<module>s@(












"


Youez - 2016 - github.com/yon3zu
LinuXploit