mooncake

MoonCake is Swift like programming language compiles to Lua

$ luarocks install mooncake

MoonCake is Swift like programming language compiles to Lua, you can try it in your browser

https://moocscript.fun

also provide vscode extension with LSP support

you can search and install `moochelper` in VS Code extension market

or you can download and install pre-build .vsix from

- https://github.com/lalawue/MoocHelper/releases
- https://gitee.com/lalawue/MoocHelper/releases

with differences from Lua

- variable default local scope
- support guard keyword
- support switch keyword
- support continue keyword
- support defer keyword in function scope
- support create class / struct
- support extension class / struct
- support import keyword
- support anonymous function form '{ in }' likes in Swift
- support expression in string like print("5 + 3 = \(5 + 3)")

also support project compile output to Lua first, without any outer dependency.

Versions

0.8.20221204-22 years ago105 downloads
0.8.20221204-12 years ago30 downloads
0.7.20221112-12 years ago31 downloads
0.7.20221006-12 years ago35 downloads
0.7.20220801-12 years ago45 downloads
0.7.20220703-22 years ago32 downloads
0.7.20220501-12 years ago42 downloads
0.6.20220116-12 years ago41 downloads
0.5.20211114-23 years ago45 downloads
0.4.20210925-13 years ago48 downloads
0.4.20210922-13 years ago33 downloads
0.4.20210829-13 years ago37 downloads
0.3.20210627-13 years ago44 downloads
0.0.3-202106193 years ago33 downloads
0.0.3-202106133 years ago34 downloads

Dependencies

lua >= 5.1

Dependency for

cincau

Manifests