On Tue, Aug 23, 2011 at 11:15 AM, Gopalakrishnan Subramani < gopalakrishnan.subram...@gmail.com> wrote:
> I could make a grammar compiled myself. I will look into SPARK.. Anybody > has > experience in pyparsing http://pyparsing.wikispaces.com/ ? > Under Examples http://pyparsing.wikispaces.com/Examples Python language > example is promising. > Have you taken a look at Lunatic Python ? http://labix.org/lunatic-python Looks like it already provides the required interfaces you need. > > Regards, > > Gopal > > > On Mon, Aug 22, 2011 at 11:25 PM, Noufal Ibrahim <nou...@gmail.com> wrote: > > > Gopalakrishnan Subramani <gopalakrishnan.subram...@gmail.com> writes: > > > > > Source language IO is very limited and it has functions to map to IO > and > > UI. > > > As a total, they have around 100+ function. > > > > > > Those can be easily done in Lua. > > > > [...] > > > > For a project in one of my earlier companies, I used SPARK[1] to write a > > little parser for a language of my own making to used to specify some > > conditionals. > > > > The parser would convert this into a python expression which could be > > evaluated with some objects to return a true or a false. > > > > If you have the grammar of your source language at hand, it's a fews > > hours job to write a parser for it using SPARK. Once you do that, you > > have to write a backend to convert it into LUA which might be a little > > more complex but not impossibly so. > > > > > > > > > > Footnotes: > > [1] http://pages.cpsc.ucalgary.ca/~aycock/spark/ > > > > -- > > ~noufal > > http://nibrahim.net.in > > > > An empty cab drove up and Sarah Bernhardt got out. -Arthur Baer, American > > comic and columnist > > _______________________________________________ > > BangPypers mailing list > > BangPypers@python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers