mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +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"
|
|
|