[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Writing interpreter in Lua
- From: Gopalakrishnan Subramani <gopalakrishnan.subramani@...>
- Date: Fri, 11 Nov 2011 18:34:13 +0530
On Fri, Nov 11, 2011 at 6:26 PM, Luiz Henrique de Figueiredo <email@example.com>
> What are the toolset/libraries available in Lua to write the interpretterCan you try to write your DSL *in* Lua? Lua can surprise you with syntax
> in Lua for a Domain Specific Language?
that does not look like ordinary Lua but in fact is. Could you give us
an example of what your DSL looks like?
The DSL Language I talk is widely used in Automation across world for 15 years of time. They are packaged, we would like to run it as it is on wider platforms like iOS, Android and windows.
So we don't define the DSL.
That is one path but if you're doing code generation, why not generate Lua
> 1. Should I convert the language to Lua byte code convention before
source code first until you get the design right? That said, you can try
This will be a nice approach and we could try as a first attempt instead of going on complex route. Since I am an amateur in language design, I could not come with any best estimation for these kind of work. Thanks for the link.
If your DSL is a simple command-line kind of language, try my lcl
> 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.
Again, this will help me to understand the basic. Thanks a lot.
If you need help with lcl, please ask me directly.
Sure. I will follow you up.