lua-users home
lua-l archive

Re: Lua incremental parser

[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 2009年7月24日 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

AltStyle によって変換されたページ (->オリジナル) /