lua-users home
lua-l archive

Re: Lua 5 Grammar update

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


Klaas-Jan Stol wrote:
But, because my goal is to write a compiler, not an interpreter, it's not a really big issue. (the goal is to get lua running on parrot)
I can only recommend Gentle (http://gentle.compilertools.net/), which is a compiler construction kit. There is a Lua grammar in the Lua2js project for Gentle:
http://luaforge.net/projects/lua2js/
Finally, you should also check out Rats!, which is another compiler construction kit as part of XTC:
http://www.cs.nyu.edu/rgrimm/xtc/rats.html
Using a full compiler construction kit surely beats writing your own compiler using only a parser and a lexer.
Regards,
Asger Ottar Alstrup

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