lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 22 May 2007 10:05:41 +0200
"Mauro Iazzi" <mauro.iazzi@gmail.com> 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
this task.