moonscript
moonscript copied to clipboard
:crescent_moon: A language that compiles to Lua
There is a pretty decent language server for lua [here](https://github.com/Alloyed/lua-lsp). I'm curious if anyone has attempted one for moonscript yet as well?
Currently, Moonscript isn't allowing any empty blocks where they might cause ambiguity, which is not ideal, since there are times when an entire block may need to be commented out,...
Multi-line not allowed: var list and expression list in assignment statement name list in for statement and in local statement expression list in implicit or explicit return
Lua allows empty blocks. Moonscript allows them for function body blocks but doesn't allow them anywhere else. (That I've found.) If this is the intended behaviour, then it should get...
This is failing to parse: ``` my_numbers = {1,2,3,4,5,6} for x in *my_numbers print x if x % 2 == 0 else continue ```
Greetings! I `require "moonscript"` in my love2d project and now, when error happens, it refers to .moon file instead of .lua, which is awesome, but it points to wrong line...
When I try to execute the [sample usage of the coverage tool](https://moonscript.org/reference/command_line.html#command-line-tools/moon/code-coverage), I only see two lines appearing: ``` starting coverage hello ``` I have done some investigation, and it...
I have a small HTLM generation library and my preferred syntax for creating HTML elements is like: `H = require 'html'` `H'table'{border: 1} rows` a simpler version also fails to...
MoonScript supports syntax such as `t.for` and gets translated to `t["for"]`, it happens in table construction and other places as well. This however, isn't the case for indexes such as...
I just spent about too long trying to figure out how the code works. ```moonscript class SpecServer current_server: nil load_test_server: (overrides) => import get_free_port from require "lapis.cmd.util" app_port = get_free_port!...