[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Writing interpreter in Lua
- From: Gopalakrishnan Subramani <gopalakrishnan.subramani@...>
- Date: Tue, 15 Nov 2011 09:38:59 +0530
Nice Presentation. Thanks for sharing.
On Tue, Nov 15, 2011 at 6:47 AM, Alexander Gladysh <firstname.lastname@example.org>
On Fri, Nov 11, 2011 at 16:22, Gopalakrishnan Subramani
> What are the toolset/libraries available in Lua to write the interpretter in
> Lua for a Domain Specific Language? Can you point the different way of
> implementing interpreter like
> 1. Should I convert the language to Lua byte code convention before
> 2. The core framework will be written in Lua say for example print "hello"
> in the domain specific language calls a Lua print or similar function
> writing in Lua. I am not sure whether to map to lua function or should I
> generate Lua byte codes.
> Looking for general advice, where as I never had experience writing
> interpretter myself, but this is going to be long term project for us. Any
> basic/intermediate/advanced tutorials or examples would be appreciated.
Shameless plug: for a particular kind of embedded declarative DSLs
(pretty expressive one), you may use this approach: