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

Receivers in LHS will be `nil` when destructuring is used on table comprehensions. No error emitted by the compiler: ```moon foo = "1 2 foobar" -- works as expected: items...

bug

The current code generated for this is potentially dangerous as it injects a name into a scope where the same name may have been re-declared as local.

bug

For example: ``` new = for sub in list for x in sub trans x ``` At first glace, one sees three possibilities. The documented behavior is that this results...

Using the slice syntax without the asterisk confusing error message. The minimal reproducible example is indeed very minimal: x[,] ``` Compile error: [string "moonscript.lua"]:1812: Unknown chain action: slice stack traceback:...

minimal example: ```moon switch 'test' when 1 then 2 -- this comment breaks the next line when 3 then 4 ``` ``` test.moon Failed to parse: [4] >> when 3...

A simple example has me transforming a list of lists: `[[trans x for x in sub] for sub in list]` Preliminary testing does show this parsing as a comprehension instead...

It would be nice if the `moon` executable (like the `lua` executable) had a `-e` switch, that would execute a program passed as a string. This would also justify the...

Run `moon -v` I found it hard to believe that this has not been reported yet!?!

A flag to enable support for Lua 5.4 attributes would be wonderful. Lua 5.4 introduces the concept of attributes for local variables. With this new feature, two attributes were added:...