[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua AST and Parsing a "C" Like language
- From: Michal Kottman <k0mpjut0r@<a href="/cgi-bin/echo.cgi?gmail.com">...</a>>
- Date: Tue, 23 Aug 2011 19:53:07 +0200
On 23 August 2011 16:39, Gopalakrishnan Subramani
> Lua can do better job here. We can define the config in Lua and logic can be
> embeded in Lua itself. Then we will try to push this to wherever required.
> Now I am looking for a way to convert the DD to Lua to save certain
> handcoding stuff.
> As I said, 100% conversion may not be fessible at this point, but we could
> do our best and remaining can be done via hand-coding.
Maybe you could take a look at LPeg  and parse/translate your DD
files to Lua tables/source code. You can get inspiration from
Moonscript , a language whose compiler uses LPeg to translate
Moonscript to Lua code.