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

Is there a function similar to `debug.traceback` which does line number rewrite?

```moon variable = \function ``` Generates the error : ``` test.moon Compile error: ...l/share/lua/5.1/moonscript/transform/transformer.lua:23: table index is nil stack traceback: ...l/share/lua/5.1/moonscript/transform/transformer.lua:23: in function (tail call): ? /usr/local/share/lua/5.1/moonscript/compile.lua:476: in function 'value'...

Adds three new operators: - `#=` (see #420) - `.=` (`a .= b` => `a = a.b`, for any a and b compatible with affectation) - `\=` (`a \= b...

```moonscript foo( "abc", --we 123 so that the abc can foo the bar 123 ) ``` This gives a parse error, where I believe it should parse without error. This...

Hello, I have just discovered moonscript, and it's quite a good language, thank you ! I don't know if this is a bug or a feature request, but if it...

One thing I really like in Perl is hash slices, i.e. in Perl you can do this: `````perl my %map = (a => 'A', b => 'B', c => 'C',...

Hello, How can I create a non-anonymous function? This is the Lua I want: ```lua local function foo() end ``` This is what I tried to do: ```moonscript foo =...

When writing long strings, lua provides the `[[...]]` syntax to reduce the amount of escaping that must be done. However, even with `[[...]]` you must be careful to add equal...

In some of my code, I find myself using the extra arguments in a packed (named) table. For example: ``` moonscript stringify = (obj, ...) -> opt = {...} --...

I'd like to be able to chain method calls across line breaks. e.g. ``` flux.to(cell, 0.5, {dy: 0}) \ease("quintin") \delay(0.05 * (cell.column - 8)) ``` But nothing I've found works....