B
    ^ Çc‚  ã               @   s¨   d Z ddlZddlmZ ddlmZ ddlmZ ej ej 	e
¡d¡Zej ej 	e
¡d¡ZG d	d
„ d
eƒZe de¡ZeeƒZe ¡ Zejd= e de¡ZeeƒZdS )z&Export the Python grammar and symbols.é    Né   )Útoken)Údriver)ÚpytreezGrammar.txtzPatternGrammar.txtc               @   s   e Zd Zdd„ ZdS )ÚSymbolsc             C   s(   x"|j  ¡ D ]\}}t| ||ƒ qW dS )z”Initializer.

        Creates an attribute for each grammar symbol (nonterminal),
        whose value is the symbol's type (an int >= 256).
        N)Zsymbol2numberÚitemsÚsetattr)ÚselfZgrammarÚnameZsymbol© r   úlib/python3.7/lib2to3/pygram.pyÚ__init__   s    zSymbols.__init__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   Zlib2to3Úprint)Ú__doc__ÚosZpgen2r   r   Ú r   ÚpathÚjoinÚdirnameÚ__file__Z_GRAMMAR_FILEZ_PATTERN_GRAMMAR_FILEÚobjectr   Zload_packaged_grammarZpython_grammarZpython_symbolsÚcopyZ!python_grammar_no_print_statementÚkeywordsZpattern_grammarZpattern_symbolsr   r   r   r   Ú<module>   s   