15.11.2011 21:25, Aaron Meurer пишет:
> Does anyone know of a good framework to implement this in, so that it
> is easily extensible (something like the printer, only backwards)?
> Obviously, we can implement the simple cases like \frac{}{} and ^
> using regular expressions, but it would be nice to have a more
> powerful (heuristic) parser in place, so that it's easy to extend to
> do many more things.
> 
> Nonetheless, it would be good to have a module that starts even with
> simple regular expressions, because then we will start to see what
> needs to be done, and what the real limitations of it are.
> 
> Aaron Meurer

We can try to use first the Latex-->MathML converter (a few
third-party's examples exists I hope), to avoide parsing *.tex (which
can be used complex nested instructions)  and only then translate MathML
to SymPy expressions.


> 
> 2011/11/15 Ondřej Čertík <ondrej.cer...@gmail.com>:
>> On Sun, Nov 13, 2011 at 3:25 AM, Vincent MAILLE <htcvi...@gmail.com> wrote:
>>> OK, thanks for your answers. It's true that LaTeX is complexe to
>>> parse. My question was juste for very simple expressions :
>>>
>>> \frac{..}{..} => (...)/(...)
>>> 2x+x^2 => 2*x+x**2
>>
>> I think it's definitely doable, and someone just has to do it for
>> simple expressions and then (if there is interest) it can be improved
>> for more complex ones. It will never be able to parse 100% of all
>> latex, but I can imagine it to work just fine for normal math that
>> people use.
>>
>> Ondrej
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sympy" group.
>> To post to this group, send email to sympy@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> sympy+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/sympy?hl=en.
>>
>>
> 


-- 
Alexey U.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to