B
    18™\‚  ã               @   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)Úsymbol2numberÚitemsÚsetattr)ÚselfÚgrammarÚnameÚsymbol© r   úR/oak/stanford/groups/akundaje/marinovg/programs/Python-3.7.3/Lib/lib2to3/pygram.pyÚ__init__   s    zSymbols.__init__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   Úlib2to3Úprint)Ú__doc__ÚosÚpgen2r   r   Ú r   ÚpathÚjoinÚdirnameÚ__file__Z_GRAMMAR_FILEZ_PATTERN_GRAMMAR_FILEÚobjectr   Úload_packaged_grammarÚpython_grammarÚpython_symbolsÚcopyÚ!python_grammar_no_print_statementÚkeywordsZpattern_grammarZpattern_symbolsr   r   r   r   Ú<module>   s   