lua-users home
lua-l archive

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

On Mon, Feb 25, 2013 at 11:32 AM, Oskar Schöldström <> wrote:
> I've written a recursive descent Lua parser in JavaScript,
> This was done for my bachelor's thesis
> and I'm planning to continue working on it to to add some missing
> features.
> The implementation has put a lot of focus on performance, currently it
> parses 5000 syntax nodes (1200 SLOC) in ~2ms with Node.js. In contrast a
> simple parser generated by Jison ( parses
> the same code in ~110ms. I also benchmarked the Jison parser using my
> own lexer, putting it at ~50ms.
> Essential features that are currently missing but hopefully coming soon:
> - Tolerant error handling
> - Location tracking
> I hope someone can find use of this.

Corona is a cross platform app system for Android and IOS that uses
Lua. I'm not very familiar with it but maybe you could use this as a
basis for adding Web/browsers as another platform in Corona.

> --
> Oskar Schöldström

Jon Smirl