[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua hacking
- From: Ketmar Dark <ketmar@...>
- Date: Tue, 22 May 2007 17:08:02 +0300
On Tue, 22 May 2007 10:05:41 +0200
"Mauro Iazzi" <firstname.lastname@example.org> wrote:
> To the point: I have modified Lua code to change the parser. The
> result is that it that parses differently from Lua (but generates the
> same bytecode and has the same API). The main changes are quite small
> (with one exception) so that most Lua code will compile anyway.
I think that such a parser can be written in Lua itself. it won't be
fast, but I think the speed will be acceptable for a shell.
some time ago I wrote a parser for Object Pascal language and it was
reasonably fast on my pIII/600 (and the parser code was too complicated
and unoptimal). if such a thing will be done in pure Lua, anyone can to
use it with vanilla Lua binaries.
take a look at Yelliang or Metalua as a good tool/starting point for