🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

I haven't had any experience with moonscript before but it looks very laconically.

Great idea, I'll try to investigate it.

Thanks

(+1)

Both LUA and moonscript use ' -- ' as single line comment so maybe a way to allow the use of moonscript would be to use a special tag like "--[moonscript]".

- If the first line of the script as the exact tag "--[moonscript]" then all the code is in moonscript,

- otherwise it is in LUA

--[moonscript]
x = 10
if something
  local x
  x = 12
print x -- prints 10

seems to be a good idea

(Edited 1 time)

made an issue https://github.com/nesbox/tic.computer/issues/8