moonscript/tests/inputs/export.moon

78 lines
639 B
Plaintext
Raw Normal View History

2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
do
export a,b,c = 223, 343
export cool = "dad"
2013-01-13 19:50:26 +00:00
do
export class Something
umm: "cool"
2013-01-13 19:50:26 +00:00
do
export a,b,c
a,b,c,d = "hello"
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
do
What = if this
232
else
4343
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
export ^
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
another = 3434
Another = 7890
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
if inner then Yeah = "10000"
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
What = if this
232
else
4343
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
do
export *
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
What = if this
232
else
4343
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
x,y,z = 1,2,3
2011-10-09 09:00:25 +00:00
2013-01-13 19:50:26 +00:00
y = ->
hallo = 3434
with tmp
j = 2000
2011-10-09 09:00:25 +00:00
2011-11-07 06:29:39 +00:00
do
export *
x = 3434
if y then
x = 10
do
export *
if y then
x = 10
x = 3434
do
do
export *
k = 1212
do
h = 100
y = ->
h = 100
k = 100
h = 100