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 )zInitializer.

        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$   