$83 GRAYBYTE WORDPRESS FILE MANAGER $60

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/idlelib/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/idlelib/__pycache__//HyperParser.cpython-34.pyo
�
e fM2�@s�dZddlZddlmZddlmZeejejd�Z	eejd�Z
dd�ed�D�Zd	d�ed�D�Z
Gd
d�d�Zedkr�ddlZejd
dd�ndS)z�Provide advanced parsing abilities for ParenMatch and other extensions.

HyperParser uses PyParser.  PyParser mostly gives information on the
proper indentation of code.  HyperParser gives additional information on
the structure of code.
�N)�	iskeyword)�PyParse�_cCs"g|]}t|�tk�qS�)�chr�_ASCII_ID_CHARS)�.0�xrr�8/opt/alt/python34/lib64/python3.4/idlelib/HyperParser.py�
<listcomp>s	r�cCs"g|]}t|�tk�qSr)r�_ASCII_ID_FIRST_CHARS)rr	rrr
rs	c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
dd�Zed
ddh�Z	e
dd��ZdZdd�Z
dS)�HyperParserc
s�|�_|j�_}tj|j|j�}dd�}||j|��}|jsx�|jD]�}t	||d�}t
|�d}	d|}
|j|j|	|
�d�|j
|j|	��}|dk	s�|dkrePqeqeW|j|p�d�n_|jd	|�}|r(|d}	nd
}	d|}
|j|j|	|
�d�|jd�|jdd��_|
�_|j��_�fdd
�tt�j��D��_�j|�dS)z;To initialize, analyze the surroundings of the given index.cSstt|��S)N)�int�float)�indexrrr
�
index2line#sz(HyperParser.__init__.<locals>.index2line�z.0z%d.endz 
NrZconsolez1.0�csBg|]8}|dko;�j|d�j|ddk�qS)rr)�
bracketing)r�i)�selfrr
rLs	z(HyperParser.__init__.<locals>.<listcomp>���)�editwin�textrZParserZindentwidthZtabwidthrZcontext_use_ps1Znum_context_lines�max�reprZset_str�getZfind_good_parse_startZ_build_char_in_string_funcZset_loZ
tag_prevrange�str�rawtext�stopatindexZget_last_stmt_bracketingr�range�len�isopener�	set_index)
rrrr�parserrZlno�contextZstartatZstartatindexr Zbod�rr)rr
�__init__s:		



	zHyperParser.__init__cCst|j�t|jj||j��}|dkrJtd|��n||_d|_xP|jt|j�dkr�|j|jdd|jkr�|jd7_q_W|jt|j�dkr|j|jdd|jkr|j	|jdr|jd7_ndS)zgSet the index to which the functions relate.

        The index must be in the same statement.
        rz(Index %s precedes the analyzed statementrN)
r"rrrr �
ValueError�indexinrawtext�indexbracketrr#)rrr*rrr
r$Rs
		!!zHyperParser.set_indexcCs/|j|jo.|j|j|jddkS)z2Is the index given to the HyperParser in a string?r�"�')r,r-)r#r+rr)rrrr
�is_in_stringgszHyperParser.is_in_stringcCs0|j|jp/|j|j|jddkS)z5Is the index given to the HyperParser in normal code?r�#r,r-)r/r,r-)r#r+rr)rrrr
�
is_in_codeoszHyperParser.is_in_codez([{FcCs�|j|jd}|j}x{|j|sc|j|j|d|ksc|j|d|kr�|d8}|dkr}dSt||j|d�}q W|jd}x:|t|j�kr�|j|d|kr�|d7}q�W|jjd|jt|j�|j|df�}|t|j�ksQ|j|dt|j�krg|r[dS|j}n;|jjd|jt|j�|j|ddf�}||fS)a�Return bracket indexes or None.

        If the index given to the HyperParser is surrounded by a
        bracket defined in openers (or at least has one before it),
        return the indices of the opening bracket and the closing
        bracket (or the end of line, whichever comes first).

        If it is not surrounded by brackets, or the end of line comes
        before the closing bracket and mustclose is True, returns None.
        rrNz%s-%dc)	rr+r#r�minr"rrr )rZopenersZ	mustcloseZbracketinglevelZbefore�afterZbeforeindexZ
afterindexrrr
�get_surrounding_bracketsus0	

+ 		)z$HyperParser.get_surrounding_brackets�True�False�NonecCs�t}|}xL||krZt||d�dkrZ|t||d�rZ|d8}qW||krSt||d�dkrSx<|d|kr�d||d|�j�r�|d8}q�W|d|kr�d||d|�j�r�|d8}n|d|kr6d||d|�j�r6|d8}n|||�j�szdSn'||krztt||�szdSn||kr�t|||��r�|||�|jkr�dS||S)z�Given a string and pos, return the number of chars in the
        identifier which ends at pos, or 0 if there is no such one.

        This ignores non-identifier eywords are not identifiers.
        rr��arr)�_IS_ASCII_ID_CHAR�ord�isidentifier�_IS_ASCII_ID_FIRST_CHARr�_ID_KEYWORDS)�clsr�limit�posZis_ascii_id_charrrrr
�_eat_identifier�s.&1.
.
zHyperParser._eat_identifierz 	
\c
Csw|j�std��n|j}|j}|j}||d}|j}|}d}x
x�||kr�||d|jkr�|d8}q_|r�||kr�||ddkr�|d8}d}q_||kr*|dkr*|||dddkr*|d8}||d}||dd}q_Pq_W|s9Pn|j|||�}|rm||}|}d}q\||kra||d}	x2|dkr�||dd|	kr�|d8}q�W||d|kr�Pn||d}|d8}||d}|}||d	krqb||d
kr]x.|dkrS||ddkrS|d8}q&W|}nPq\Pq\W|||j�S)z�Return a string with the Python expression which ends at the
        given index, which is empty if there is no real one.
        z>get_expression should only be calledif index is inside a code.rTr�.r/rFz([z'"ZrRbBuU)r0r)rrr+r*�_whitespace_charsrA)
rrrZ
brck_indexZ
brck_limitr@Zlast_identifier_posZ
postdot_phaseZret�levelrrr
�get_expression�sb				#
 
	

	'
#	zHyperParser.get_expressionN)�__name__�
__module__�__qualname__r(r$r.r0r3�	frozensetr=�classmethodrArCrErrrr
rs7,:r�__main__z"idlelib.idle_test.test_hyperparser�	verbosityr)�__doc__�string�keywordrZidlelibrrIZ
ascii_lettersZdigitsrr
r!r9r<rrFZunittest�mainrrrr
�<module>s�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
AutoComplete.cpython-34.pyc
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoComplete.cpython-34.pyo
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyc
11.269 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyo
11.214 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyc
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyo
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyc
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyo
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyc
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyo
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyc
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyo
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyc
6.041 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyo
6.001 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyc
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyo
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyc
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyo
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyc
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyo
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyc
51.43 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyo
51.336 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyc
3.555 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyo
3.525 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyc
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyo
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyc
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyo
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyc
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyo
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyc
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyo
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyc
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyo
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyc
16.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyo
16.166 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyc
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyo
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyc
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyo
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyc
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyo
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyc
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyo
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyc
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyo
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyc
4.03 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyo
3.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyc
11.256 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyo
10.824 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyc
47.078 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyo
46.942 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyc
14.312 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyo
14.173 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyc
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyo
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyc
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyo
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyc
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyo
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyc
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyo
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyc
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyo
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyc
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyo
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyc
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyo
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyc
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyo
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyc
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyo
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyc
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyo
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyc
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyo
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyc
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyo
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyc
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyo
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyc
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyo
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyc
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyo
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyc
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyc
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyo
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyc
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyo
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyc
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyo
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyc
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyo
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyc
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyo
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyc
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyo
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyc
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyo
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyc
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyo
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyc
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyo
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyc
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyo
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyc
7.135 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyo
7.022 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyc
20.514 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyo
20.413 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyc
12.35 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyo
12.301 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyc
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyo
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyc
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyo
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF