moonscript
moonscript copied to clipboard
:crescent_moon: A language that compiles to Lua
Why is `repeat..until` not supported by MoonScript? Would you consider adding `do..while` instead?
utils.moon ran well singly. But printed error when running game.moon that only has a command `require 'utils'` --utils.moon ```lua math.randomseed os.time! choice= (a)-> a[math.random #a] { :choice } ``` --game.moon...
Compiling `a\a.a` > Compile error: Short-dot syntax must be called within a with block Compiling `a\a\a` *The v0.5.0 compiler broke* 😞
Well, I would like to keep line numbere when compling. In this way, luajit can also display the correct line number in stacktrace.
Would it be possible to add conditional assignment to line decorators? For example, I can do option 1: `fcolor=message\match ""` `message=message\gsub "", fcolor if fcolor` Or option 2: `message=message\gsub "",...
I've just found a rather peculiar problem (see [example](https://gist.github.com/DarkWiiPlayer/2f9440e59b4ded14073d50c52f9569e6)). When calling `moonscript.loadstring` with an environment table it seems to, at some point while compiling, set the environment to that table,...
e.g. ```moon a, b = 1, 2 a, b += 3, 4 print a, b # 4, 6 ``` I think this would be very handy, especially working with tuples...
If I do ```moonscript my_str = "say " with my_str = my_str .. "something" \sub(1, 10) ``` It works. But if I do ```moonscript my_str = "say " with my_str...
Issue #127 should disappear with this. If `DelayedLine` ever becomes implemented some changes will be necessary, but until then everything should work nicely.
## Problem Error when calling `moon stater.test.moon` in terminal on Mac OSX, using Lua 5.1.5 No error exists when running ``` moonc . lua stater.test.lua ``` Code runs as intended...