Alex Rivera | Logout

Are there any recent Lua to JavaScript converters or interpreters somewhere?

Asked 2008-10-06T21:18:46.450
32

I need to find a good Lua to JavaScript converter; lua2js on luaforge.org is out of date (3 or so years old and looks like it doesn't work on Lua 5.1) and I haven't yet found anything on Google.

Does anyone have any experience with any other converters out there? It should work on Lua 5.1 and preferably be .NET based, but .NET is not a requirement. A javascript lua interpreter would work as well.

Edit
Report

2 Answers

4

Emscripten contains the Lua interpreter converted to JavaScript. You can try it in your browser. However the size is 1.5MB.

answered 2011-04-26T10:14:39.673
4

ljs has a working demo of a lua vm in javascript. Source code can even be compiled in the browser using a lua interpreter written in lua.

https://github.com/humbletim/ljs

answered 2011-11-11T16:46:14.647

Your Answer