403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/__pycache__/pyparse.cpython-315.opt-1.pyc
R
>lqj�Oc�^�Qs]PHs\]2vsssss\OQ\O\O*2Os\OQ\O2Os\OQ\O\O*2Os\OQ\O2Os\OQ\O2Os\OQ\O2OsQQ\2s\O-\]�2]x2s\O1Q	Q
22\O1QQ22\O1Q
Q22QQ2s\Q6Xc]QHlGs\Q]Q5P!P!)a�Define partial Python code Parser used by editor and hyperparser.

Instances of ParseMap are used with str.translate.

The following bound search and match functions are defined:
_synchre - start of popular statement;
_junkre - whitespace or comment line;
_match_stringre: string, possibly without closer;
_itemre - line that may have bracket structure start;
_closere - line that must be followed by dedent.
_chew_ordinaryre - non-special characters.
z�
    ^
    [ \t]*
    (?: while
    |   else
    |   def
    |   return
    |   assert
    |   break
    |   class
    |   continue
    |   elif
    |   try
    |   except
    |   raise
    |   import
    |   yield
    )
    \b
z'
    [ \t]*
    (?: \# \S .* )?
    \n
aK
    \""" [^"\\]* (?:
                     (?: \\. | "(?!"") )
                     [^"\\]*
                 )*
    (?: \""" )?

|   " [^"\\\n]* (?: \\. [^"\\\n]* )* "?

|   ''' [^'\\]* (?:
                   (?: \\. | '(?!'') )
                   [^'\\]*
                )*
    (?: ''' )?

|   ' [^'\\\n]* (?: \\. [^'\\\n]* )* '?
zM
    [ \t]*
    [^\s#\\]    # if we match, m.end()-1 is the interesting char
z_
    \s*
    (?: return
    |   break
    |   continue
    |   raise
    |   pass
    )
    \b
z
    [^[\](){}#'"\\]+
c�,`�\sQs]fsnQsQsQsUsP!)�ParseMapaTDict subclass that maps anything not in dict to 'x'.

This is designed to be used with str.translate in study1.
Anything not specifically mapped otherwise becomes 'x'.
Example: replace everything except whitespace with 'x'.

>>> keepwhite = ParseMap((ord(c), ord(c)) for c in ' \t\n\r')
>>> "a + b\tc\nd".translate(keepwhite)
'x x x\tx\nx'
c��]x!)�x�)�self�keys&&�$C:\Python315\\Lib\idlelib\pyparse.py�__missing__�ParseMap.__missing__rs���r)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r	�__static_attributes__�__classdictcell__��
__classdict__s@rrrfs����	��rrc#�Z�SF �Do[U2[Q21w�	J	P!3h)�(��ord��.0�cs& r�	<genexpr>rx�������A�c�!�f�c�#�h�
����$+z({[c#�Z�SF �Do[U2[Q21w�	J	P!3h)�)rrs& rrryrrz)}]c#�Z�SF �Do[U2[U21w�	J	P!3h�Nrrs& rrrzs��z���z�!�c�!�f�c�!�f�
�z�rz"'\
#c�v`�\sQs]}snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsUsP!)�Parserc� �VmV mP!r")�indentwidth�tabwidth)rr&r's&&&r�__init__�Parser.__init__s
��&�� �
rc�"�Vm]UmP!)�)�code�study_level)r�ss&&r�set_code�Parser.set_code�s���	���rc�d�UOPq2[U2o[]2FDoUOQ]U2oU]6cLcUOQ]U2]*o[	V&U2oU%c0UUO22%fUO2oLSoJ�	UeB[	U2oU%c-UUO22%fUO2oU!U]*o[	V&29o%c'UO
2vq�UU2%cJ5SoJ9U!)a
Return index of a good place to begin parsing, as close to the
end of the string as possible.  This will be the start of some
popular stmt like "if" or "def".  Return None if none found:
the caller should pass more prior context then, if possible, or
if not (the entire program text up until the point of interest
has already been tried) pass 0 to set_lo().

This will be reliable iff given a reliable is_char_in_string()
function, meaning that when it says "no", it's absolutely
guaranteed that the char is not in a string.
z:
�
)r,�len�range�rfind�_synchre�start�span)	r�is_char_in_stringr,�pos�limit�tries�i�mr.s	&&       r�find_good_parse_start�Parser.find_good_parse_start�s���I�I�t�c�
�D�	���1�X�E��
�
�5�!�U�+�A��1�u���
�
�4��A�&��*�A���%�(�A��*�1�7�7�9�5�5��g�g�i����E���;����A��*�1�7�7�9�5�5��g�g�i���J�
�!�G���D�$�$�a�$��6�6�8�D�A�$�Q�'�'����
rc�B�U]6�cUOUPUmP!P!)zgThrow away the start of the string.

Intended to be called with the result of find_good_parse_start().
)r,)r�los&&r�set_lo�
Parser.set_lo�s!����6��	�	�"�#��D�I�rc��UO]6�cP!]UmUOoUO[2oUO	QQ2oUO	QQ2oUO	QQ2oUO	QQ2oUO	QQ2o[
o]9q4],9UmoUOo][U2q�Vx6Cc�V*o	U]*oU	Q6XcJ!U	Q6XcU]*oU]6Xc	UU2JBU	Q6XcU]*oJTU	Q6XcU%c
U]*
oJnU	Q	6XfU	Q
6Xc�S	o
V]*
U]*U
]*6Xc
U
]*o
So[U
2]*
oV|*oVx6c�V*o	U]*oU	Q6XcJ V]*
V|*U
6Xc
V|*oLnU	Q6Xc#U]*oU]6XcU]6Xc	UU2LGJhU	Q6XfJqV*Q6Xc
U]*oU]*oJ�U]*
U6Xc[oL[oCJqU	Q6XcUOQU2oCJ�V*Q6XcU]*oU]*U6Xc[oU]*oCJ�U[6wcU[6wcU]6�c[oV mUP*U6wcUU2P!P!)
z�Find the line numbers of non-continuation lines.

As quickly as humanly possible <wink>, find the line numbers (0-
based) of the non-continuation lines.
Creates self.{goodlines, continuation}.
�xxxxxxxx�x�xxxx�xxz
xr2rr �"�'�\�#)r-r,�	translate�trans�replace�C_NONE�	goodlines�appendr3�C_STRING_FIRST_LINE�C_STRING_NEXT_LINES�find�C_BACKSLASH�	C_BRACKET�continuation)
rr,rY�level�lnorR�	push_goodr=�n�ch�quote�firstlno�ws
&            r�_study1�Parser._study1�s������q� ������y�y���~�~�e�$���|�|�J��,���|�|�F�C�(���|�|�D�#�&���|�|�D�#�&���|�|�E�4�(�������&'�S�(�����$�$�	��#�d�)�1��e���B��!��A��S�y���T�z��A�g���A�:��c�N���S�y���	����S�y��!�A�I�E���S�y�B�#�I����!��A�a�C�=�E�A�I�-�!�A�I�E�����J��N���C���e���B��!��A��S�y� ��a�C���}��-��C����T�z�!�A�g����6�$��z� )�#��!� ��T�z��7�d�?�"%��'�C��a�C�� ��a��H�,�(;��':����S�y��I�I�d�A�&����w�$���A�g���Q�3�!�8�#.�L��!��A�

�/�/�� 3�3���	�$�L�(��
�R�=�C���c�N� rc�<�UO2UO!r")rbrY�rs&r�get_continuation_type�Parser.get_continuation_typeKs������� � � rc� �UO]6�cP!UO2]UmUOUOq![	U2]*
o[	U2oU%chSo[V#]*
*V#*2FD$oUO
Q]U]*
2]*oJ&	[V2%cU]*
oJnU]6XcSoUWtUmUm	Po,oUOo	U]1,o
VE6Cc�[VU2oU%cPUO2oU]*
oV46�cV*Q7cU]*
oJV46�c	V*oSoVE6�cCLzV*o
U
Q7c2U	U2U
OU[	U212S
oU]*oJ�U
Q7c5U%cUPS
oU]*oU
OU[	U212J�U
Q6XfU
Q6Xc_U
OU[	U2]*12S
o[VU2O2oU
OU[	U212CJQU
Q6Xc\U
OU[	U2]*12UOQVE2]*oU
OU[	U212CJ�U]*oV*Q6wcV�U**oU]*oCJ�VpmU%c
UP*LPUm[#U
2UmP!)a�
study1 was sufficient to determine the continuation status,
but doing more requires looking at every character.  study2
does this for the last interesting statement in the block.
Creates:
    self.stmt_start, stmt_end
        slice indices of last interesting stmt
    self.stmt_bracketing
        the bracketing structure of the last interesting stmt; for
        example, for the statement "say(boo) or die",
        stmt_bracketing will be ((0, 0), (0, 1), (2, 0), (2, 1),
        (4, 0)). Strings and comments are treated as brackets, for
        the matter.
    self.lastch
        last interesting character before optional trailing comment
    self.lastopenbracketpos
        if continuation is C_BRACKET, index of last open bracket
r2� 	
�([{�)]}rJrKrM)r-rbr,rRr3r4r5�_junkre�
stmt_start�stmt_endrS�_chew_ordinaryre�end�_match_stringrerV�lastch�lastopenbracketpos�tuple�stmt_bracketing)rr,rRr=�p�q�nothingrr�stack�
push_stack�
bracketingr>�newpr^s&             r�_study2�Parser._study2Os���&���q� ����������)�)�T�^�^�i��	�N�Q�����I����A� ��Q�3����>���J�J�t�Q��!��,�q�0��?�
�� � ��a�C�����6��A�)*�A�&����������\�\�
��!�f�X�
��e� ��!�,�A���u�u�w���1�H���f���G�!3��!��A��6�!�W�F����6����B��U�{��1�
��!�!�1�c�%�j�/�2����a�C����U�{���b�	����a�C���!�!�1�c�%�j�/�2���S�y�B�#�I��!�!�1�c�%�j��l�"3�4���#�D�Q�/�3�3�5���!�!�1�c�%�j�/�2���S�y��!�!�1�c�%�j��l�"3�4��I�I�d�A�)�A�-���!�!�1�c�%�j�/�2���!��A��w�$���1�g����!��A���/4�%��)�$���$�Z�0��rc��UO2UOoUOo[U2oUO	Q]U2]*9qEU]*oV6cJ[V!2oU%cUO
2]*
o]oLCUOQU2]*9qQJOS9qV!*Q7cU]*oJUOo[V%UOUO22U*!)z`Return number of spaces the next line should be indented.

Line continuation must be C_BRACKET.
r2� 	)r}rsr,r3r5�_itemrerprVr&�
expandtabsr')r�jr,r]�origir=r>�extras&       r�compute_bracket_indent�Parser.compute_bracket_indent�s���
	
�����#�#���y�y����I���J�J�t�Q��*�Q�.�.��
�a�C���e��� �A���E�E�G�a�K������	�	�$��*�Q�.�.��A��M�A��'�U�"��a�C���$�$�E��4�!�9�'�'��
�
�6�7�%�?�?rc�j�UO2UOoUP*UQ**
!)z�Return number of physical lines in last stmt.

The statement doesn't have to be an interesting statement.  This is
intended to be called when continuation is C_BACKSLASH.
���)rbrR)rrRs& r�get_num_lines_in_stmt�Parser.get_num_lines_in_stmt�s)��	
�����N�N�	���}�y��}�,�,rc�\�UO2UOoUOoV*Q7cU]*oJSoUOQU2]*o]9qVV$6c�V*oUQ7cU]*oU]*oJ)UQ7cU%c
U]*
oU]*oJLUQ6XfUQ6Xc[	VU2O2oJvUQ6XcLKU]6Xc:UQ6Xc3U]6XfV]*
*Q	7cV]**Q6wc]oLU]*oJ�U%c%U]*o[OQ
VU2PIoU%fSoV*Q7cU]*oJ[VOUOUO22]*!)z�Return number of spaces the next line should be indented.

Line continuation must be C_BACKSLASH.  Also assume that the new
line is the first one following the initial line of the stmt.
r�r2rjrkrJrKrM�=z=<>!z\s*\\ri)r}r,rmrVrqrp�re�matchr3r�r')rr,r=�startpos�endpos�foundrZr^s&       r�compute_backslash_indent�Parser.compute_backslash_indent�s{��	
�����y�y���O�O���g����!��A������4��*�Q�.������j���B��U�{���	���a�C���u���!�A�I�E��a�C���s��b�C�i�#�D�V�4�8�8�:���s����!���c�	���F�d�Q�3�i�v�5��!��9��#�����a�C����!��A��H�H�X�t�f�~�6�$�>�E���A��'��(��a�C���4����*�5�5�%)�]�]�4�5�78�9�	9rc��UO2UOUOq!SoUOoV26cVC*Q7cU]*oJVAU!)zPReturn the leading whitespace on the initial line of the last
interesting stmt.
r�)r}rmrnr,)rr=r]r�r,s&    r�get_base_indent_string�Parser.get_base_indent_string,sK��	
��������
�
�1�
���y�y���e���5�(��A��A��a�y�rc�B�UO2UOQ6H!)z<Return True if the last interesting statement opens a block.�:)r}rrres&r�is_block_opener�Parser.is_block_opener8s�������{�{�c�!�!rc�h�UO2[UOUO2PI!)z=Return True if the last interesting statement closes a block.)r}�_closerer,rmres&r�is_block_closer�Parser.is_block_closer=s%��������	�	�4�?�?�3�4�?�?rc�<�UO2UO!)zzReturn bracketing structure of the last interesting statement.

The returned tuple is in the format defined in _study2().
)r}rures&r�get_last_stmt_bracketing�Parser.get_last_stmt_bracketingBs��
	
�����#�#�#r)r,rYrRr&rrrsrurnrmr-r')rr
rrr(r/r?rCrbrfr}r�r�r�r�r�r�r�rrrs@rr$r$}sX����!��
2�h'�D�L!�y1�v@�>-�79�r
�"�
@�
$�$rr$�__main__)�mainzidlelib.idle_test.test_pyparse)�	verbosity)rr�r4rQrWrTrUrX�compile�VERBOSE�	MULTILINE�searchr6r�rl�DOTALLrqr�r�ro�dictr�fromkeysrO�updater$r�unittestr�rrr�<module>r�s����
�$)��8�!���)��i��:�:��&�Z�Z�"�,�,��' �&!'��'	�.
�*�*���Z�Z�	���	��*�*�� �Z�Z�"�)�)��!� #�U�!�*
�*�*���Z�Z������:�:�	��Z�Z�	���	� �:�:���Z�Z�����

�t�
�"	���%��*�c�*�����/��/�/����/��/�/����2�z�2�2�K$�K$�\�z����	)�Q�7�r

Youez - 2016 - github.com/yon3zu
LinuXploit