moonscript icon indicating copy to clipboard operation
moonscript copied to clipboard

:crescent_moon: A language that compiles to Lua

Results 118 moonscript issues
Sort by recently updated
recently updated
newest added

a function that work's like Typescript's Code examples normal usage ```moonscript name = prompt("What's your name?: ") print "hello, {@name}!" ``` pre-set value ```moonscript age = prompt("How old are you?",...

Consider ```moonscript {x} = {42} print x ``` This generates ```lua local x x = { 42 }[1] return print(x) ``` which errors when invoked with `luajit`: ``` luajit: src/simple.lua:4:...

Code like this ```moon {a, b} = for i in *{2, 3} do i*i print a, b ``` Compiles to ```lua do local _accum_0 = { } local _len_0 =...

### Variations of command tried `moonc -w --output-to "./out" config.moon` `moonc -w -t .out .` `moonc -t .out -w .` ### Expected behaviour When supplying -t argument with -w files...

```moonscript hello = "one #{three ..} two" ``` Currently compiles to: ```lua local hello = "one #{three ..} two" ``` This should abort compilation and throw error if a `#{`...

What is the way to use the latest version in master branch, of 2023.3.22 as of this writing, on Windows? The last Windows binary package in the download section seems...

Is it possible to add utf 8 support for names ?

Hello, I noticed that the xor operator even though it exists in LUA is not usable in moonscript: The following code: `c = a ~ b` in moonscript gives the...

similar request as https://github.com/leafo/loadkit/issues/5, https://luarocks.org/modules/leafo/moonscript last release was 7 years ago. Would be nice to have something more recent to avoid packaging a dev version. Cheers

as titled benchmark against vanilla luajit etc