2015-02-28 21:26:29 +00:00
|
|
|
|
2015-02-28 21:52:09 +00:00
|
|
|
-- binary ops
|
2015-02-28 21:26:29 +00:00
|
|
|
x = 1 + 3
|
|
|
|
|
|
|
|
y = 1 +
|
|
|
|
3
|
|
|
|
|
|
|
|
z = 1 +
|
|
|
|
3 +
|
|
|
|
4
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
k = b and c and
|
|
|
|
g
|
|
|
|
|
|
|
|
|
|
|
|
h = thing and
|
|
|
|
->
|
|
|
|
print "hello world"
|
|
|
|
|
|
|
|
-- TODO: should fail, indent still set to previous line so it thinks body is
|
|
|
|
-- indented
|
|
|
|
i = thing or
|
|
|
|
->
|
|
|
|
print "hello world"
|
|
|
|
|
|
|
|
p = thing and
|
|
|
|
->
|
|
|
|
print "hello world"
|
|
|
|
|
|
|
|
s = thing or
|
|
|
|
-> and 234
|
2015-02-28 21:41:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
u = {
|
|
|
|
color: 1 and 2 and
|
|
|
|
3
|
|
|
|
4
|
|
|
|
4
|
|
|
|
}
|
|
|
|
|
|
|
|
v = {
|
|
|
|
color: 1 and
|
|
|
|
->
|
|
|
|
"yeah"
|
|
|
|
"great"
|
2015-02-28 21:52:09 +00:00
|
|
|
oksy: 3 ^
|
|
|
|
2
|
2015-02-28 21:41:38 +00:00
|
|
|
}
|
|
|
|
|
2015-02-28 21:52:09 +00:00
|
|
|
-- parens
|
|
|
|
|
|
|
|
nno = (
|
|
|
|
yeah + 2 )
|
|
|
|
|
|
|
|
nn = (
|
|
|
|
yeah + 2
|
|
|
|
)
|
|
|
|
|
|
|
|
n = hello(
|
|
|
|
b
|
|
|
|
) ->
|
|
|
|
|
|
|
|
hello a,
|
|
|
|
(
|
|
|
|
yeah +
|
|
|
|
2
|
|
|
|
) -
|
|
|
|
okay
|
|
|
|
|