mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-08 01:54:24 +00:00
28 lines
282 B
Plaintext
28 lines
282 B
Plaintext
|
|
do
|
|
print "hello"
|
|
print "world"
|
|
|
|
x = do
|
|
print "hello"
|
|
print "world"
|
|
|
|
y = do
|
|
things = "shhh"
|
|
-> "hello: " .. things
|
|
|
|
-> if something then do "yeah"
|
|
|
|
t = {
|
|
y: do
|
|
number = 100
|
|
(x) -> x + number
|
|
}
|
|
|
|
(y=(do
|
|
x = 10 + 2
|
|
x), k=do
|
|
"nothing") -> do
|
|
"uhhh"
|
|
|