
    sh
                     2   S SK r S SKrS SKrS SKJr  \ R
                  R                  \5      r\ R
                  R                  \ R
                  R                  \S5      5      r\ R
                  R                  \S5      rSrS r\4S jr\S:X  a  \" 5         gg)	    N)debugzLaTeX.g4_antlra  # *** GENERATED BY `setup.py antlr`, DO NOT EDIT BY HAND ***
#
# Generated from ../LaTeX.g4, derived from latex2sympy
#     latex2sympy is licensed under the MIT license
#     https://github.com/augustt198/latex2sympy/blob/master/LICENSE.txt
#
# Generated with antlr4
#    antlr4 is licensed under the BSD-3-Clause License
#    https://github.com/antlr/antlr4/blob/master/LICENSE.txt
c                      [        S5         [        [        R                  " S/5      R                  S5      R	                  S5      S   5        g! [        R
                  [        4 a    [        S5         gf = f)	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     z/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/sympy/parsing/latex/_build_latex_antlr.pycheck_antlr_versionr      sq    	
&'j%%xj1vguuT{1. 	/))+<=  K 	L 	s   AA %A76A7c                    [        5         [        SR                  U 5      5        [        R                  R                  U 5      (       d  [        R                  " U 5        [        [        R                  R                  U S5      S5       nUR                  [        5        S S S 5        S[        SU SS/n[        SR                  S	R                  U5      5      5        [        R                  " X S
9  [        S5        [        R                  " [        R                  R                  U S5      5      =(       d4    [        R                  " [        R                  R                  U S5      5       GH[  nUR                  S5      (       d  [        R                   " U5        M2  [        R                  R                  U [        R                  R#                  U5      R%                  5       5      n[        US5       nU Vs/ s H  ofR'                  5       S-   PM     nnS S S 5        [        R                   " U5        [        US5       nSn	WU	   R)                  S5      (       a  U	S-  n	Xy   R)                  S5      (       a  M  UR                  [        5        UR+                  XyS  5        S S S 5        [        SR                  U5      5        GM^     g! , (       d  f       GN3= fs  snf ! , (       d  f       N= f! , (       d  f       NV= f)Nz#Updating ANTLR-generated code in {}z__init__.pyzw+r   z-oz-no-visitorz-no-listenerz Running code generation...
	$ {} )cwdz<Applying headers, removing unnecessary files and renaming...zLaTeX*.*zlatex*.*z.pyrr   wr   #   z	{}T)r   r   formatospathexistsmakedirsopenjoinwriteheadergrammar_filer   r	   globendswithunlinkbasenamelowerrstrip
startswith
writelines)

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

.
5
5chhtn
EFD1	
HI 277<<
J?@ 8		"'',,z:678 }}U##IIdO77<<
BGG,<,<T,B,H,H,JK$_678ad[[]T)aE8  			$(C HF-**3//! -**3//NN6"g/ ! 	fmmH%&+8. S 
=	<8 9 _
 ! s<   	K3K"8KK" 9K3;(K3
KK""
K0	3
L	__main__)r   r   r#   sympy.utilities.miscr   r   dirname__file__hereabspathr   r"   dir_latex_antlrr!   r   r4   __name__r   r   r   <module>r=      s    	   &	wwx wwrww||D*=>'',,tX.

 , 1h zN r   