mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
55 lines
503 B
Plaintext
55 lines
503 B
Plaintext
|
|
|
|
x = -> print what
|
|
|
|
->
|
|
|
|
-> -> ->
|
|
|
|
go to the barn
|
|
|
|
open -> the -> door
|
|
|
|
open ->
|
|
the door
|
|
hello = ->
|
|
my func
|
|
|
|
h = -> hi
|
|
|
|
eat ->, world
|
|
|
|
|
|
(->)()
|
|
|
|
x = (...) ->
|
|
|
|
hello!
|
|
hello.world!
|
|
|
|
hello!.something
|
|
what!["ofefe"]
|
|
|
|
what! the! heck!
|
|
|
|
(a,b,c,d,e) ->
|
|
|
|
(a,a,a,a,a) ->
|
|
print a
|
|
|
|
(x=23023) ->
|
|
|
|
(x=(y=()->) ->) ->
|
|
|
|
(x = if something then yeah else no) ->
|
|
|
|
something = (hello=100, world=(x=[[yeah cool]])-> print "eat rice") ->
|
|
print hello
|
|
|
|
(x, y) =>
|
|
(@x, @y) =>
|
|
(x=1) =>
|
|
(@x=1,y,@z="hello world") =>
|
|
|
|
|