관리-도구
편집 파일: pyparse.cpython-37.opt-2.pyc
B YI~d�M � @ s d dl Z ed�\ZZZZZe �de je j B �j Ze �de j�jZ e �de je jB �jZe �de j�jZe �de j�jZe �de j�jZG d d � d e�Ze�ed�d�Ze�d d� dD �� e�dd� dD �� e�dd� dD �� G dd� d�Zedk�rd dlmZ eddd� dS )� 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 Zdd� ZdS )�ParseMapc C s dS )N�x � )�self�keyr r �4/opt/alt/python37/lib64/python3.7/idlelib/pyparse.py�__missing__r s zParseMap.__missing__N)�__name__� __module__�__qualname__r r r r r r f s r � r c c s | ]}t |�t d �fV qdS )�(N)�ord)�.0�cr r r � <genexpr>x s r z({[c c s | ]}t |�t d �fV qdS )�)N)r )r r r r r r y s z)}]c c s | ]}t |�t |�fV qd S )N)r )r 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 )N)�indentwidth�tabwidth)r r r r r r �__init__ s zParser.__init__c C s || _ d| _d S )Nr )�code�study_level)r �sr r r �set_code� s zParser.set_codec C s� | j d }}t|�}xdtd�D ]X}|�dd|�}|dk r:P |�dd|�d }t|||�}|rr||�� �sr|�� }P |}qW |d kr�t|�}|r�||�� �s�|�� }|S |d }x.t||�}|r�|�� \}}||�s�|}q�P q�W |S )Nr z: r � � )r �len�range�rfind�_synchre�start�span) r Zis_char_in_stringr �pos�limitZtries�i�mr r r r �find_good_parse_start� s4 zParser.find_good_parse_startc C s |dkr| j |d � | _ d S )Nr )r )r �lor r r �set_lo� s z Parser.set_loc C s� | j dkrd S d| _ | j}|�t�}|�dd�}|�dd�}|�dd�}|�dd�}|�dd�}t}d }}dg | _}|j}dt|� }}�x�||k �rn|| } |d }| dkr�q�| dkr�|d }|dkr�||� q�| d kr�|d }q�| d k�r |r�|d }q�| dk�s| dk�r$| } ||d |d � | d k�r>| d } |}t| �d }|| }x�||k �r|| } |d }| dk�r��qX||d || � | k�r�|| }P | dk�r�|d }|dk�rX|dk�r�||� P �qX| dk�rX|| dk�r�|d }|d }�qX�qXW |d |k�rt }q�t }q�| dk�r<|�d|�}q�|| dk�rd|d }|d |k�rdt}|d }q�W |t k�r�|t k�r�|dk�r�t }|| _|d |k�r�||� d S )Nr Zxxxxxxxx�xZxxxxZxxz xr r r r �"�'� � �\�#���)r r � translate�trans�replace�C_NONE� goodlines�appendr �C_STRING_FIRST_LINE�C_STRING_NEXT_LINES�find�C_BACKSLASH� C_BRACKET�continuation) r r r>