관리-도구
편집 파일: pyparser.cpython-37.pyc
B �C]m � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ej rredd d dg�Ze� d�Znedd d g�Ze� d �Ze�e� ddd�ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� de�ZdS )zyHandles parsing of Python code. Parsing to AST is done via _ast on Python > 2.5, otherwise the compiler module is used. � N)� _ast_util)�compat)� exceptions)�util)�arg_stringname�True�False�None�print�arg�id�execc K sT yt �| d|�S tk rN tjdt�� jjt�� | dd� f f|��Y nX dS )zParse an expression into ASTz <unknown>z(%s) %s (%r)r �2 N) r �parse� Exceptionr ZSyntaxExceptionr Zexception_as� __class__�__name__)�code�mode�exception_kwargs� r �>/opt/alt/python37/lib/python3.7/site-packages/mako/pyparser.pyr ) s r c @ sz e Zd Zdd� Zdd� Zdd� Zdd� Zejr6d d � Z dd� Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� ZdS )�FindIdentifiersc K s$ d| _ d| _t� | _|| _|| _d S )NF)�in_function�in_assign_targets�set�local_ident_stack�listenerr )�selfr r r r r �__init__; s zFindIdentifiers.__init__c C s&