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-1.pyc
a

�ab�7�@s�dZddlZddlmZddlmZmZmZmZm	Z	m
Z
mZmZddl
mZddlmZddlmZddlmZe�e�ZeegefZe�d	�Ze�d
�Ze�d�Ze�d�Ze�d
�Ze�d�Z e�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 �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,e'�Z2Gd-d.�d.�Z3dS)/z�
    sphinx.util.cfamily
    ~~~~~~~~~~~~~~~~~~~

    Utility functions common to the C and C++ domains.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�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()rOrP)r"rOrPrrrrH�szASTGnuAttribute.__init__r+cCs(|jg}|jr|�||j��d�|�S)N�)rOrPrJ�join)r"r,�resrrrr1�szASTGnuAttribute._stringify)rrrr2rrHr?r1rrrrrM�srMc@s@eZdZeedd�dd�Zeed�dd�Ze	dd�d	d
�Z
dS)�ASTGnuAttributeListN)�attrsrcCs
||_dSr()rU)r"rUrrrrH�szASTGnuAttributeList.__init__r+cCsJdg}d}|jD]$}|s"|�d�d}|�||��q|�d�d�|�S)Nz__attribute__((Tz, Fz))rQ)rUrJrR)r"r,rS�first�attrrrrr1�s


zASTGnuAttributeList._stringifyrAcCst|�}|�t�||��dSr(rIrLrrrrD�sz&ASTGnuAttributeList.describe_signature)rrrrrMrHr?r2r1r
rDrrrrrT�srTc@s@eZdZdZedd�dd�Zeed�dd�Zedd	�d
d�Z	dS)�ASTIdAttributez*For simple attributes defined by the user.N)�idrcCs
||_dSr(�rY)r"rYrrrrH�szASTIdAttribute.__init__r+cCs|jSr(rZr0rrrr1�szASTIdAttribute._stringifyrAcCs|�t�|j|j��dSr()rJrrKrYrCrrrrD�sz!ASTIdAttribute.describe_signature�
rrr�__doc__r2rHr?r1r
rDrrrrrX�srXc@sBeZdZdZeedd�dd�Zeed�dd�Zedd	�d
d�Z	dS)�ASTParenAttributez)For paren attributes defined by the user.N)rYrFrcCs||_||_dSr(�rYrF)r"rYrFrrrrH�szASTParenAttribute.__init__r+cCs|jd|jdS)N�(�)r^r0rrrr1�szASTParenAttribute._stringifyrAcCst|�}|�t�||��dSr(rIrLrrrrD�sz$ASTParenAttribute.describe_signaturer[rrrrr]�sr]c@seZdZdS)rNNrrrrrrN�srNc@seZdZdS)�$UnsupportedMultiCharacterCharLiteralNrrrrrra�srac@seZdZdS)�DefinitionErrorNrrrrrrb�srbc@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)�striprdrerf�pos�len�end�
last_match�_previous_state�otherErrorsZallowFallbackExpressionParsing)r"rdrerfrrrrH�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:
rQ)rirbr2rJ�splitrR)r"rnro�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)rh�printrd)r"rz�	indicatorrrr�statusszBaseParser.statuscCslg}d|jd}td|j||j|j|f�}|�|df�|jD]}|�|df�qBg|_|�|d��dS)Nr{r|z2Invalid %s declaration: %s [error at %d]
  %s
  %sz
Main errorzPotential other errorrQ)rhrbryrdrJrmrw)r"rzrnr~ZexMain�errrrr�fail	s��
zBaseParser.failcCstj||jd�dS)N)re)�loggerZwarningre)r"rzrrr�warnszBaseParser.warn)�regexrcCs>|�|j|j�}|dur:|j|jf|_|��|_||_dSdS�NTF)�matchrdrhrkrlrj)r"r�r�rrrr�s
zBaseParser.match)�stringrcCs8t|�}|j|j|j|�|kr4|j|7_dSdSr�)rirdrh)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()rhrjr)rrr�eof:szBaseParser.eofcCs(z|j|jWSty"YdS0dS)NZEOF)rdrh�
IndexErrorr)rrr�current_char>szBaseParser.current_charcCs|jdur|j��SdSdSr()rk�groupr)rrr�matched_textEs

zBaseParser.matched_textcCs|j|jd�}|j|_|Sr()rdrhrj)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�rdrhr�)r"r�rrr�
assert_endQszBaseParser.assert_endcCst�dSr(rxr)rrr�
id_attributes\szBaseParser.id_attributescCst�dSr(rxr)rrr�paren_attributes`szBaseParser.paren_attributes)rjrcCs�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.rpz8Could not find end of balanced-token-seq starting at %d.)	rhr�rir��keysrJ�popr�rd)r"rjZbrackets�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�)rjz!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�rhr�r�r�r�rEr�r��
identifier_rer��_parse_paren_expression_listrJrMrTr�rXr�r])r"r�rFrUrOZexprsrYrrr�_parse_attributexsT

















zBaseParser._parse_attributecCst�dSr(rxr)rrrr��sz'BaseParser._parse_paren_expression_list)(rrrr2rrZNoder
r=rHrrrbrw�propertyryrr�r�r	r<r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr@r�rNr�rrrrrc�s>�	

8rc)4r\r��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@rErMrTrXr]rNrarbrcrrrr�<module>sB
(












"


Youez - 2016 - github.com/yon3zu
LinuXploit