o
    GZh                     @   s~   d dl mZ d dlmZ edddgidZedddgidZed	dd
gidZeeddZeeddZ	eed
dZ
dd ZdS )    )version)import_modulez*sympy.parsing.autolev._antlr.autolevparserfromlistAutolevParser)Zimport_kwargsz)sympy.parsing.autolev._antlr.autolevlexerAutolevLexerz,sympy.parsing.autolev._antlr.autolevlistenerAutolevListenerNc                 C   s   t d}|rtddstdz|  }|d|}W n ty-   || }Y nw tr[ddl	m
} t|}||}t|}| }	||}
| }||
|	 d|
jS d S )Nantlr4zantlr4-python3-runtimez4.11zAutolev parsing requires the antlr4 Python package, provided by pip (antlr4-python3-runtime) conda (antlr-python-runtime), version 4.11    )
MyListener)r   r   
startswithImportError	readlinesZInputStreamjoin	Exceptionr   Z_listener_autolev_antlrr   r   ZCommonTokenStreamr   progZParseTreeWalkerwalkZoutput_code)Zautolev_codeZinclude_numericr   lZinput_streamr   lexertoken_streamparsertreeZmy_listenerZwalker r   Y/var/www/auris/lib/python3.10/site-packages/sympy/parsing/autolev/_parse_autolev_antlr.pyparse_autolev   s(   
r   )importlib.metadatar   Zsympy.externalr   ZautolevparserZautolevlexerZautolevlistenergetattrr   r   r   r   r   r   r   r   <module>   s    