Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
U
i_M @ s d Z ddlZed\ZZZZZedej ej
B jZedej j
Zedej ejB j
Zedej j
Zedej j
Zed ej j
ZG d
d deZeedd
Zedd dD edd dD edd dD G dd dZedkrddlmZ eddd dS )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.
N 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 @ s e Zd ZdZdd ZdS )ParseMapap 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 C s dS )Nx )selfkeyr r ./opt/python38/lib/python3.8/idlelib/pyparse.py__missing__r s zParseMap.__missing__N)__name__
__module____qualname____doc__r r r r r r f s r r c c s | ]}t |t d fV qdS )(Nord.0cr r r x s r z({[c c s | ]}t |t d fV qdS ))Nr r r r r r y s z)}]c c s | ]}t |t |fV qd S Nr r r r r r z s z"'\
#c @ s| e Zd Zdd Zdd Zdd Zdd Zd d
Zdd Zd
d Z dd Z
dd Zdd Zdd Z
dd Zdd Zdd ZdS )Parserc C s || _ || _d S r )indentwidthtabwidth)r r r r r r __init__ s zParser.__init__c C s, t |dks|d dkst|| _d| _d S )Nr
)lenAssertionErrorcodestudy_level)r sr r r set_code s zParser.set_codec C s | j d }}t|}tdD ]\}|dd|}|dk r: qz|dd|d }t|||}|rt|| st| } qz|}q|dkrt|}|r|| s| }|S |d }t||}|r| \}}||s|}qqq|S )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.
Nr z:
r r )r r rangerfind_synchrestartspan) r Zis_char_in_stringr poslimitZtriesimr" r r r find_good_parse_start s2
zParser.find_good_parse_startc C s: |dks| j |d dkst|dkr6| j |d | _ dS )zx Throw away the start of the string.
Intended to be called with the result of find_good_parse_start().
r r$ r N)r r )r lor r r set_lo s z
Parser.set_loc
C s | j dkrdS d| _ | j}|t}|dd}|dd}|dd}|dd}|dd}t}d }}d g | _}|j}d t| }}||k r|| } |d }| dkrq| dkr|d }|d kr|| q| d
kr|d }q| dkr|r|d }q| dks| d
kr(| }
||d |d |
d kr8|
d }
|}t|
d }|| }||k r|| } |d }| dkrxqP||d || |
kr|| }q| dkr|d }|d krP|d kr&|| qqP| dkrP||k st || dkr|d }|d }qPqP|d |kr"t
}qt}q| dkrL|d|}|d kst q| dksZt ||k sht || dkr|d }|d |krt
}|d }q|t
kr|tkr|d krt}|| _|tk|d |kkst |d |kr|| dS )zFind the line numbers of non-continuation lines.
As quickly as humanly possible , find the line numbers (0-
based) of the non-continuation lines.
Creates self.{goodlines, continuation}.
r$ NZxxxxxxxxxZxxxxZxxz
xr r r r "' \#r )r! r translatetransreplaceC_NONE goodlinesappendr r C_STRING_FIRST_LINEC_STRING_NEXT_LINESfindC_BACKSLASH C_BRACKETcontinuation)
r r rC levellnor<