| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/f2py/__pycache__/ |
Upload File : |
�
�g� � � � d dl Z d dlZ ej dej � Z ej dej � Z ej dej � Zd� Z ej d� Z ej d� Z ej d� Z
d � Zd
� Z ej d� Z
d� Zd
� Z ej d� Zd� Zd� Z ej dej � Zd� Zd� Z ed� Zy)� Nz2(\n|\A)(( (\$|\*))|)\s*(subroutine|function)\bz+\n\s*end\s*(subroutine|function)\b.*(\n|\Z)z\n (\$|\*)\s*function\bc �� � g }d} t j | |� }|� |S |j � }t j | ||j � � r) | j
d||� }|dk( rn|}| ||dz dk7 rn�(|dz
}t j | |j � � }|xr |j � dz
xs t | � x}}|j ||f� ��)z� Return a list of tuples for each function or subroutine each
tuple is the start and end of a subroutine or function to be
expanded.
r �
���� z
$� )
�routine_start_re�search�start�function_start_re�match�end�rfind�routine_end_re�len�append)�astr�spanlist�ind�mr
�ir
s �5C:\Python312\Lib\site-packages\numpy/f2py/_src_pyf.py�parse_structurer 7 s� � � �H�
�C�
��#�#�D�#�.���9�� �O� ��� ���"�"�4������8���J�J�t�S�%�0���b�5������!�A�#�;�
�*��
� ��
���!�!�$�����0���O�!�%�%�'�!�)�0�s�4�y�0��c�������%�! � z<\s*(\w[\w\d]*)\s*>z<\s*(\w[\w\d]*)\s*=\s*(.*?)\s*>z<\s*((.*?))\s*>c �� � t j | � }i }|D ]G }|d j � xs t |� }|d j dd� }t |� }|||<