
    MZd                     F    d dl mZ d dlmZ ddlmZ  ed      d        Zy)	    )import_module)doctest_depends_on   )LaTeXParsingError)antlr4)modulesc                 J    t        dddgi      }||j                  |       S y)aI  Converts the string ``s`` to a SymPy ``Expr``

    Parameters
    ==========

    s : str
        The LaTeX string to parse. In Python source containing LaTeX,
        *raw strings* (denoted with ``r"``, like this one) are preferred,
        as LaTeX makes liberal use of the ``\`` character, which would
        trigger escaping in normal Python strings.

    Examples
    ========

    >>> from sympy.parsing.latex import parse_latex
    >>> expr = parse_latex(r"\frac {1 + \sqrt {\a}} {\b}")
    >>> expr
    (sqrt(a) + 1)/b
    >>> expr.evalf(4, subs=dict(a=5, b=2))
    1.618
    z&sympy.parsing.latex._parse_latex_antlrfromlistX)import_kwargsN)r   parse_latex)s_latexs     >/usr/lib/python3/dist-packages/sympy/parsing/latex/__init__.pyr   r      s9    0 0!C5)+F !!!$$     N)sympy.externalr   sympy.utilities.decoratorr   errorsr   r    r   r   <module>r      s%    ( 8 %K(% )%r   