Translates Lua source to readable JavaScript without running it, for a game that
is leaving Lua scripting behind. Metatables, coroutines, general goto and some
patterns are not translated: they stay as TODO(lua2js) comments and warnings.
Throws a LuaSyntaxError for source that does not parse.
Translates Lua source to readable JavaScript without running it, for a game that is leaving Lua scripting behind. Metatables, coroutines, general
gotoand some patterns are not translated: they stay asTODO(lua2js)comments andwarnings. Throws aLuaSyntaxErrorfor source that does not parse.