o
    í@Ëaò  ã                   @   sP   d Z ddlmZ ddlmZ ddlmZmZ ddlZ	ddl
Z
dd„ Zdd	„ ZdS )
z+
    This module contains pythran frontend
é    )ÚGatherOMPData)Úcheck_syntax)ÚExtractDocStringsÚHandleImportNc                 C   s   t  dd| ¡} t | ¡S )Nz(\s*)#\s*(omp\s[^\n]+)z\1"\2")ÚreÚsubÚastÚparse)Úcode© r   ú2/usr/lib/python3/dist-packages/pythran/frontend.pyÚ	raw_parse   s   
r   c                 C   s@   t |ƒ}|  t|¡ |  t|¡ |  t|¡\}}t|ƒ ||fS )N)r   Zapplyr   r   r   r   )Zpmr
   ZirÚ_Z
docstringsr   r   r   r	      s   r	   )Ú__doc__Zpythran.openmpr   Zpythran.syntaxr   Zpythran.transformationsr   r   Zgastr   r   r   r	   r   r   r   r   Ú<module>   s    