
    sg
                     .   d dl Z d dlZd dlZd dlmZ e j
                  j                  e      Ze j
                  j                  e j
                  j                  ed            Ze j
                  j                  ed      ZdZd ZefdZedk(  r e        yy)	    N)debugz
Autolev.g4_antlrz# *** GENERATED BY `setup.py antlr`, DO NOT EDIT BY HAND ***
#
# Generated with antlr4
#    antlr4 is licensed under the BSD-3-Clause License
#    https://github.com/antlr/antlr4/blob/master/LICENSE.txt
c                      t        d       	 t        t        j                  dg      j                  d      j	                  d      d          y# t        j
                  t        f$ r t        d       Y yw xY w)	NzChecking antlr4 version...antlr4zutf-8
r   TzThe 'antlr4' command line tool is not installed, or not on your PATH.
> Please refer to the README.md file for more information.F)r   
subprocesscheck_outputdecodesplitCalledProcessErrorFileNotFoundError     ]/var/www/html/venv/lib/python3.12/site-packages/sympy/parsing/autolev/_build_autolev_antlr.pycheck_antlr_versionr      sq    	
&'j%%xj1vguuT{1. 	/))+<=  K 	L 	s   A A $A54A5c           	         t                t        dj                  |              t        j                  j                  |       st        j                  |        t        t        j                  j                  | d      d      5 }|j                  t               d d d        dt        d| dg}t        dj                  dj                  |                   t        j                  || 	       t        d
       t        j                  t        j                  j                  | d            xs3 t        j                  t        j                  j                  | d            D ]e  }|j                  d      st        j                   |       +t        j                  j                  | t        j                  j#                  |      j%                               }t        |d      5 }|j'                         D cg c]%  }|j)                         j+                  dd      dz   ' }}d d d        t        j                   |       t        |d      5 }d}	|	   j-                  d      r|	dz  }	||	   j-                  d      r|j                  t               |j/                  ||	d         d d d        t        dj                  |             h y# 1 sw Y   2xY wc c}w # 1 sw Y   xY w# 1 sw Y   ExY w)Nz#Updating ANTLR-generated code in {}z__init__.pyzw+r   z-oz-no-visitorz Running code generation...
	$ {} )cwdz<Applying headers, removing unnecessary files and renaming...z
Autolev*.*z
autolev*.*z.pyrzAutolevParser importzautolevparser importr   wr   #   z	{}T)r   r   formatospathexistsmakedirsopenjoinwriteheadergrammar_filer   r	   globendswithunlinkbasenamelower	readlinesrstripreplace
startswith
writelines)

output_dirfpargsr   new_pathflinelinesout_fileoffsets
             r   build_parserr6   "   sP   	
/
6
6z
BC77>>*%
J	bggll:}5t	< 
 	j	D 

.
5
5chhtn
EFDj1	
HI 277<<
LAB :		"'',,z<89' }}U#IIdO77<<
BGG,<,<T,B,H,H,JK$_ 	0!"0 [[]**+ACYZ\`` 0E 0	0 			$(C  	0HF-**3/! -**3/NN6"fg/	0 	fmmH%&-'0 Q 40	0 	0	0 	0s<   K	!K4*KK	0K':)K'	KKK$	'K0	__main__)r   r   r#   sympy.utilities.miscr   r   dirname__file__hereabspathr   r"   dir_autolev_antlrr!   r   r6   __name__r   r   r   <module>r?      s    	   &	wwx wwrww||D,?@GGLLx0 
 . 0f zN r   