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.
>

I had written up a little about it (using a question that was earlier
posted on bangpypers) and it included the pyparsing configuration as
well.

http://codeblog.dhananjaynene.com/2010/01/extracting-data-using-recursive-descent-parsing/

> 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
>



-- 
----------------------------------------------------------------------------------------------------------------------------------
http://blog.dhananjaynene.com twitter: @dnene google plus:
http://gplus.to/dhananjaynene
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to