§
    ,P„j'  ã                   óX   — d Z ddlmZ ddlmZ  G d„ d¦  «        Z e¦   «         Zd	d„ZdS )
z±
This module deals with interpreting the parse tree as Python
would have done, in the compiler.

For now this only covers parse tree to value conversion of
compile-time values.
é   )ÚDictNode)ÚCompileErrorc                   ó   — e Zd Zd„ ZdS )Ú
EmptyScopec                 ó   — d S )N© )ÚselfÚnames     ú`/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/Cython/Compiler/Interpreter.pyÚlookupzEmptyScope.lookup   s   € Øˆtó    N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s#   € € € € € ðð ð ð ð r   r   Nr   c                 ó  ‡‡‡— ˆˆfd„Š| rˆfd„t          | ¦  «        D ¦   «         } |rWt          |t          ¦  «        sJ ‚i }|j        D ]4} ‰|j        d¦  «        \  }} ‰|j        |j        j        ¦  «        ||<   Œ5|}| |fS )a,  
    Tries to interpret a list of compile time option nodes.
    The result will be a tuple (optlist, optdict) but where
    all expression nodes have been interpreted. The result is
    in the form of tuples (value, pos).

    optlist is a list of nodes, while optdict is a DictNode (the
    result optdict is a dict)

    If type_env is set, all type nodes will be analysed and the resulting
    type set. Otherwise only interpretateable ExprNodes
    are allowed, other nodes raises errors.

    A CompileError will be raised if there are problems.
    c                 óæ   •— |‰v rL‰r5|                       ‰¦  «        }|st          | j        d¦  «        ‚|| j        fS t          | j        d¦  «        ‚|                      t          ¦  «        | j        fS )NzInvalid type.zType not allowed here.)Úanalyse_as_typer   ÚposÚcompile_time_valueÚempty_scope)ÚnodeÚixÚtypeÚ	type_argsÚtype_envs      €€r   Ú	interpretz0interpret_compiletime_options.<locals>.interpret%   s~   ø€ Ø�ˆ?ˆ?Øð GØ×+Ò+¨HÑ5Ô5�Øð BÝ& t¤x°ÑAÔAÐAØ˜dœhÐ'Ð'å" 4¤8Ð-EÑFÔFÐFØ×'Ò'­Ñ4Ô4°d´hÐ?Ð?r   c                 ó.   •— g | ]\  }} ‰||¦  «        ‘ŒS r   r   )Ú.0r   Úxr   s      €r   ú
<listcomp>z1interpret_compiletime_options.<locals>.<listcomp>1   s)   ø€ ÐDÐDÐD©¨¨A�9�9˜Q Ñ#Ô#ÐDÐDÐDr   N)Ú	enumerateÚ
isinstancer   Úkey_value_pairsÚkeyÚvalue)	ÚoptlistÚoptdictr   r   Únew_optdictÚitemÚnew_keyÚdummyr   s	     ``    @r   Úinterpret_compiletime_optionsr,      sÒ   øøø€ ð"	@ð 	@ð 	@ð 	@ð 	@ð 	@ð ð EØDÐDÐDÐDµ¸7Ñ1CÔ1CÐDÑDÔDˆØð Ý˜'¥8Ñ,Ô,Ð,Ð,Ð,ØˆØÔ+ð 	Ið 	IˆDØ&˜Y t¤x°Ñ6Ô6‰NˆG�UØ#, 9¨T¬Z¸¼¼Ñ#HÔ#HˆK˜Ñ Ð ØˆØ�[Ð!Ð!r   )Nr   )Ú__doc__Ú	ExprNodesr   ÚErrorsr   r   r   r,   r   r   r   ú<module>r0      sˆ   ððð ð  Ð Ð Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  ðð ð ð ð ñ ô ð ð ˆj‰lŒl€ð%"ð %"ð %"ð %"ð %"ð %"r   