[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Writing interpreter in Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 11 Nov 2011 14:32:44 +0200
On Fri, Nov 11, 2011 at 2:22 PM, Gopalakrishnan Subramani
> 1. Should I convert the language to Lua byte code convention before
Good question. This is the hard way to do it, although you get direct
control over the debug information. But it will be tied to a
particular Lua implementation - e.g. if targeting Lua 5.1, it will not
work with Lua 5.2 without modification and LuaJIT has a completely
different byte code structure.
It is easier to know what's going on if you (at least initially)
generate Lua source.
The other option is to modify the Lua compiler until it gives the
syntax that you want. People have made curly bracket languages this