https://github.com/remixer-dec/luatojs
lua to js transpiler (pre-alpha) | ported game > https://remixer-dec.github.io/LuaToJS/ports/PeggleDeluxe/
https://github.com/remixer-dec/luatojs
javascript lua web-app
Last synced: 4 months ago
JSON representation
lua to js transpiler (pre-alpha) | ported game > https://remixer-dec.github.io/LuaToJS/ports/PeggleDeluxe/
- Host: GitHub
- URL: https://github.com/remixer-dec/luatojs
- Owner: remixer-dec
- Created: 2017-07-15T00:01:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T20:05:29.000Z (over 8 years ago)
- Last Synced: 2025-01-13T16:28:06.884Z (about 1 year ago)
- Topics: javascript, lua, web-app
- Language: HTML
- Homepage: https://remixer-dec.github.io/LuaToJS/
- Size: 1.77 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
**LuaToJS - Translate lua syntax to js**
[remixer-dec.github.io/LuaToJS/](https://remixer-dec.github.io/LuaToJS/)
Experimental project created to simplify translation of Lua code to JS.
> What's the difference between this project and some similar like [lua2js](https://github.com/mherkender/lua.js)?
This one works without NodeJS, (in browser) and not uses abstraction (like usage of functions to get the value of a table). You get similar to the original code but with some limitations.
> What are these limitations?
- Every function must have a return statement in the end.
- Every reserved keyword will be replaced even if it's inside a string or is a function name.
> What is unimplemented yet or not working?
* [ ] metatables
* [ ] native functions
* [ ] constants
* [ ] 1 line functions
* [ ] multiple returns
* [ ] prints with and without brackets
* [ ] tables with unusual indexes
* [x] functions inside tables, created after a tables (like function a.b() )
* [ ] array / object concatenation
* [ ] inheritance
* [ ] __index
* [ ] dofile/require/loadstring/loadfile
* [x] multiple variable assignment
** **
*[created by Remixer Dec](https://github.com/remixer-dec) | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode)*