o
    ^i                     @   s   U d Z ddlZddlmZ ddlmZ ddlmZ G dd dZG d	d
 d
eZ	G dd deZ
eed< eed< eed< eed< e	ed< e
ed< ddeeddf ddfddZdS )z&Export the Python grammar and symbols.    N)Union   )driver)Grammarc                   @   s   e Zd ZdeddfddZdS )SymbolsgrammarreturnNc                 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)selfr   namesymbol r   T/var/www/html/stock_analysis/be/venv/lib/python3.10/site-packages/blib2to3/pygram.py__init__   s   zSymbols.__init__)__name__
__module____qualname__r   r   r   r   r   r   r      s    r   c                   @   s  e Zd ZU eed< eed< eed< eed< eed< eed< eed< eed< eed	< eed
< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed< eed < eed!< eed"< eed#< eed$< eed%< eed&< eed'< eed(< eed)< eed*< eed+< eed,< eed-< eed.< eed/< eed0< eed1< eed2< eed3< eed4< eed5< eed6< eed7< eed8< eed9< eed:< eed;< eed<< eed=< eed>< eed?< eed@< eedA< eedB< eedC< eedD< eedE< eedF< eedG< eedH< eedI< eedJ< eedK< eedL< eedM< eedN< eedO< eedP< eedQ< eedR< eedS< eedT< eedU< eedV< eedW< eedX< eedY< eedZ< eed[< eed\< eed]< eed^< eed_< eed`< eeda< eedb< eedc< eedd< eede< eedf< eedg< eedh< eedi< eedj< eedk< eedl< eedm< eedn< eedo< eedp< eedq< eedr< eeds< eedt< duS )v_python_symbolsand_exprand_test	annassignarglistargument
arith_exprasexpr_testassert_stmtasync_funcdef
async_stmtatom	augassign
break_stmt
case_blockclassdefcomp_forcomp_if	comp_itercomp_op
comparisoncompound_stmtcontinue_stmt	decorated	decorator
decoratorsdel_stmtdictsetmakerdotted_as_namedotted_as_namesdotted_nameencoding_decl
eval_inputexcept_clauseexpr	expr_stmtexprlistfactor
file_input	flow_stmtfor_stmtfstringfstring_format_specfstring_middlefstring_replacement_fieldfuncdefglobal_stmtguardif_stmtimport_as_nameimport_as_namesimport_fromimport_nameimport_stmtlambdef	listmaker
match_stmtnamedexpr_testnot_testold_comp_forold_comp_ifold_comp_iterold_lambdefold_testor_test
parameters	paramspec	pass_stmtpatternpatternspower
raise_stmtreturn_stmt
shift_exprsimple_stmtsingle_inputsliceop
small_stmtsubject_expr	star_exprstmt	subscriptsubscriptlistsuitetermtesttestlist	testlist1testlist_gexptestlist_safetestlist_star_exprtfpdeftfplisttname
tname_startrailertry_stmttstringtstring_format_spectstring_middletstring_replacement_field	type_stmttypedargslist	typeparam
typeparamstypevartypevartuplevarargslistvfpdefvfplistvname
while_stmt	with_stmtxor_expr	yield_arg
yield_expr
yield_stmtNr   r   r   int__annotations__r   r   r   r   r       s   
 r   c                   @   sF   e Zd ZU eed< eed< eed< eed< eed< eed< eed< dS )	_pattern_symbolsAlternativeAlternativesDetailsMatcherNegatedUnitRepeaterUnitNr   r   r   r   r   r      s   
 r   python_grammarpython_grammar_async_keywordspython_grammar_soft_keywordspattern_grammarpython_symbolspattern_symbols	cache_dirzos.PathLike[str]r   c                 C   s   t jt jtd}t jt jtd}td|| adtjvs$J dtjvs+J tj	
 }tj	  ttadt_t
 adt_dt_t
 a|t_	d	t_td|| attad S )
NzGrammar.txtzPatternGrammar.txtblib2to3printexec)   r   T)r      )r   
   )ospathjoindirname__file__r   load_packaged_grammarr   keywordssoft_keywordscopyclearr   r   versionr   async_keywordsr   r   r   r   )r   _GRAMMAR_FILE_PATTERN_GRAMMAR_FILEr   r   r   r   
initialize   s*   	

r   )N)__doc__r   typingr   pgen2r   pgen2.grammarr   r   r   r   r   strr   r   r   r   r   <module>   s   	w
"