+
    i                        ^ RI t ^ RIt^ RIHt ^ RIt^ RIHt ^ RIHtH	t	H
t
 ^ RIHt ]! R4      t]RJ t] P                  P!                  ] P                  P#                  ]4      R4      tRtR	tRR
 ltR t ! R R]	4      tR tR# )    N)Path)raises)LarkLaTeXParserTransformToSymPyExprparse_latex_lark)import_modulelarkz ../latex/lark/grammar/latex.larkzA
%override DIV_SYMBOL: DIV
%override MUL_SYMBOL: MUL | CMD_TIMES
z 
%override number: /\d+(,\d*)?/
c           	      N   \        \        4      P                  R R7      pW ,          p\        P                  ! 4       ;_uu_ 4       pVP                  \        VRR7      4       VP                  4        \        VP                  VR7      pRRR4       V#   + '       g   i     X# ; i)zutf-8)encodingutf8)grammar_filetransformerN)
r   r   	read_texttempfileNamedTemporaryFilewritebytesflushr   name)modificationr   latex_grammarfparsers   &&   c/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/parsing/tests/test_custom_latex.pyinit_custom_parserr      s{    &00'0BM!M		$	$	&	&!	mf56		 aff+N	 
' M 
'	& Ms   ABB$	c                      \        \        4      p \        \        P                  P
                  4      ;_uu_ 4        V P                  R 4       V P                  R4       RRR4       R#   + '       g   i     R# ; i)z	a \cdot bzx \div yN)r   modification1r   r	   
exceptionsUnexpectedCharactersdoparser   s    r   test_custom1r"   &   sJ      .F	44	5	5|${# 
6	5	5	5s   #A((A9	c                   &   a  ] tR t^/t o R tRtV tR# )CustomTransformerc                    R V^ ,          9   dA   \         P                  P                  P                  V^ ,          P	                  R R4      4      # \         P                  P                  P                  V^ ,          4      # ),.)sympycorenumbersFloatreplaceInteger)selftokenss   &&r   numberCustomTransformer.number0   sY    &)::%%++F1I,=,=c3,GHH::%%--fQi88     N)__name__
__module____qualname____firstlineno__r0   __static_attributes____classdictcell__)__classdict__s   @r   r$   r$   /   s     9 9r2   r$   c                  p   \        \        \        4      p \        \        P
                  P                  4      ;_uu_ 4        \        R 4       \        R4       RRR4       V P                  R 4       V P                  R4       V P                  R4       V P                  R4       R#   + '       g   i     LV; i)z100,1z0,009Nz2,71828z3,14159)	r   modification2r$   r   r	   r   r   r   r    r!   s    r   test_custom2r=   7   sx      /@AF	44	5	5 	!!	 
6 NN7
NN7
NN9
NN9 
6	5s    B%%B5	)N)osr   pathlibr   r(   sympy.testing.pytestr   sympy.parsing.latex.larkr   r   r   sympy.externalr   r	   disabledpathjoindirname__file__r   r   r<   r   r"   r$   r=   r3   r2   r   <module>rH      s~    	    ' \ \ (V 4<ww||BGGOOH57YZ

$9, 9r2   