Hi Everyone:

I'm having trouble converting a latex expression to sympy using the lark 
based parsing:

import sympy.parsing.latex as spl
ex = r"a^2 b" 
print(spl.parse_latex_lark(ex))

throws an exception:
lark.exceptions.UnexpectedCharacters: No terminal matches 'b' in the 
current parser context, at line 1 col 5

Python version 3.10.18
sympy version 1.14.0

Any suggestions?  Should I expect this to work?

Thanks! --- Jim.



-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sympy/a9d328eb-3c76-4541-b384-d0610180b454n%40googlegroups.com.

Reply via email to