Your IP : 3.17.78.184
U
i�f�5 � @ sd d dl mZmZmZ G dd� dej�ZG dd� de�ZG dd� de�ZG dd � d e�Z ddd�Z
d
S )� )�grammar�token�tokenizec @ s e Zd ZdS )�PgenGrammarN)�__name__�
__module__�__qualname__� r r �7/opt/alt/python38/lib64/python3.8/lib2to3/pgen2/pgen.pyr s r c @ s� e Zd Zd&dd�Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zd'd d!�Zd"d#� Zd$d%� ZdS )(�ParserGeneratorNc C sl d }|d krt |�}|j}|| _|| _t�|j�| _| �� | � � \| _
| _|d k rZ|� i | _| �
� d S �N)�open�close�filename�streamr �generate_tokens�readline� generator�gettoken�parse�dfas�startsymbol�first�addfirstsets)�selfr r Zclose_streamr r r
�__init__ s zParserGenerator.__init__c C s t � }t| j�� �}|�� |�| j� |�d| j� |D ]&}dt|j � }||j |<