| Server IP : 121.121.20.254 / Your IP : 216.73.216.70 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 : /Python315/Lib/idlelib/__pycache__/ |
Upload File : |
R
>lqj�O c �^ � Q s ] PHs\ ]2 v sssss\O Q\O \O * 2 O s\O Q\O 2 O s\O Q\O \O * 2 O s\O Q\O 2 O s\O Q\O 2 O s\O Q\O 2 O s Q Q\2 s\O- \ ]�2 ]x2 s\O1 Q Q
2 2 \O1 Q Q2 2 \O1 Q
Q2 2 Q Q2 s\Q6X c ] QHlGs \ Q]Q5 P! 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 �, ` � \ sQ s]fs n QsQ sQsU sP! )�ParseMapaT Dict 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__r s � �� r )�__name__�
__module__�__qualname__�__firstlineno__�__doc__r �__static_attributes__�__classdictcell__��
__classdict__s @r r r f s �� � � �� r r c # �Z � S F � D o[ U2 [ Q 2 1w � J P! 3h)�(��ord��.0�cs & r � <genexpr>r x � ��� � ��A�c�!�f�c�#�h�
��� �$+z({[c # �Z � S F � D o[ U2 [ Q 2 1w � J P! 3h)�)r r s & r r r y r r z)}]c # �Z � S F � D o[ U2 [ U2 1w � J P! 3h�Nr r s & r r r z s ��z� � �z�!�c�!�f�c�!�f�
�z�r z"'\
#c �v ` � \ sQ s]}s n Q sQ sQ sQ sQ sQ s Q s
Q sQ sQ
s
Q sQ sQ
sQ sQsU sP! )�Parserc � � Vm V m P! r"