Lua to js syntax translator

lua code

js code

as you might know, lua arrays (tables) have their first index at 1, but we can try to do something with it


what to do with local variables


what to do with empty tables


replace nil with


replace all .lua extensions to .js


Translate!