| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.10/idlelib/__pycache__/ |
Upload File : |
o
�9jY2 � @ s� d Z ddlmZ ddlZddlmZ eejej d �Z eejd �Z
dd� ed�D �Zd d� ed�D �Z
G d
d� d�ZedkrNdd
lmZ eddd� dS dS )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.
� )� iskeywordN)�pyparse�_c C � g | ]}t |�tv �qS � )�chr�_ASCII_ID_CHARS��.0�xr r �*/usr/lib/python3.10/idlelib/hyperparser.py�
<listcomp> � r
� c C r r )r �_ASCII_ID_FIRST_CHARSr r r r r
r c @ sZ e Zd Zdd� Zdd� Zdd� Zdd� Zddd�Zeh d
��Z e
dd� �ZdZdd� Z
dS )�HyperParserc
sH |� _ |j � _}t�|j|j�}dd� }||�|��}|js[|jD ]0}t || d�}t
|�d } d| }
|�|�| |
�d � |�
|�| ��}|dusP|dkrR nq"|�|pXd� n#|�d |�}|rh|d } nd
} d| }
|�|�| |
�d � |�d� |jdd� � _|
� _|�� � _� fdd
�tt� j��D �� _� �|� dS )z;To initialize, analyze the surroundings of the given index.c S s t t| ��S )N)�int�float)�indexr r r �
index2line"