Am 07.03.2014 14:23, schrieb Aditya Shah:
@Jo Thanks again for the clarifications. I did some research and I observed
that conversion from Math Spec Languages to Sympy equivalent can be done
via the use of RE themselves.

I doubt that that's possible for all cases.
This is one of the typical situation where the task looks simple at the surface, then you start ironing out the kinks, and then you run into a severe case of diminishing returns.

The nasty thing is: You won't notice that you're into this kind of trouble until you hit that nasty corner case where an RE doesn't suffice, but at that point, you have sunk so much time and energy into the project that you don't want to go back and redo it all. (Or you can't for lack of time.) Heck, a syntax change in any of the input languages could trigger that problem, so no analysis of existing languages will help you to determine whether REs are enough or not.

> So this will allow for a very efficient
grammar(RE are manifestations of FSAs and the their conversions to CFGs is
a quite simple algorithm).

I know - though I know from trying my own hand in that area is that the algorithm's concept is simple, but the implementation is hard to debug. It's all too easy to mistake a symptom for the cause of a bug, so the fix goes to the symptom instead of the bug.

> So in the end what matters is the underlying
architecture by which the developer enter the details for the new parser to
be made, which is then processed by the tool that I propose to build(the
interface between a spec file and its conversion to python code so as to be
processed by modgrammar)

Ideally, no spec file is needed.
Python code can serve as a spec file easily enough.

After all, it's not that you'll want users to provide their own spec files - and even if you do, the level of expertise they'll need is at roughly the same level as knowing Python, so you don't really make it easier by creating a second tier here.

> and then the resultant output is fed to modgrammar
which then generates the final parser.

Sounds needlessly complicated to me.

But maybe you have a reason why Python code won't do as a spec file?

--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/5319CB48.4050107%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to