lua-users home
lua-l archive

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


 
Although metalua
(http://metalua.luaforge.net/)  would error out when given incorrect Lua syntax, may be modifying/relaxing its internals is 
 
the right approach for you (perhaps creating another 'token' type indicating possibly incorrect syntax )
 
 
 
 
On Fri, 24 Jul 2009 10:25 -0300, "Luís Eduardo Jason Santos" <jasonsantos@gmail.com> wrote:
Hi, folks

I need to write a lua-based Parser that can build and repair a Lua AST for the LuaEclipse project.

Although is relatively easy to create parsers with LPEG, error-detection and 'online' matching is a pain.

Besides, I am not familiar with all the issues of this particular problem, so I am looking for examples.

Therefore, I wonder if anyone has ever written an incremental parser for Lua that I could use as a reference.

Interesting papers on the subject are welcome too.

Thanks in advance!

Luís Eduardo Jason Santos
-- 
Vlad P
author of C++  ORM  http://github.com/vladp/CppOrm/tree/master

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow