o
    Š�bc  ã                   @   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 ¡ 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$   |j  ¡ D ]
\}}t| ||ƒ q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   ú%/usr/lib/python3.10/lib2to3/pygram.pyÚ__init__   s   ÿzSymbols.__init__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   Úlib2to3ÚprintÚexec)Ú__doc__ÚosÚpgen2r   r   Ú r   ÚpathÚjoinÚdirnameÚ__file__Ú_GRAMMAR_FILEÚ_PATTERN_GRAMMAR_FILEÚobjectr   Úload_packaged_grammarÚpython_grammarÚpython_symbolsÚcopyÚ!python_grammar_no_print_statementÚkeywordsÚ*python_grammar_no_print_and_exec_statementÚpattern_grammarÚpattern_symbolsr   r   r   r   Ú<module>   s$   ÿ