o
    h                     @   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)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	readlinesInputStreamjoin	Exceptionr   _listener_autolev_antlrr   r   CommonTokenStreamr   progParseTreeWalkerwalkoutput_code)autolev_codeinclude_numericr	   linput_streamr   lexertoken_streamparsertreemy_listenerwalker r#   ^/var/www/vscode/kcb/lib/python3.10/site-packages/sympy/parsing/autolev/_parse_autolev_antlr.pyparse_autolev   s(   
r%   )importlib.metadatar   sympy.externalr   autolevparserautolevlexerautolevlistenergetattrr   r   r   r%   r#   r#   r#   r$   <module>   s    