aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-01-16 01:44:50 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-01-16 01:44:50 -0800
commit4c059a7f9b2aa87fa96251e5fb0c647eed13b2dd (patch)
treec5adde80063da1685cb288d15d6d6a993c55a3ab
parentd82c4f85d8cdb1d4cdf97e90b2715d2fb06b4bef (diff)
Removed unnecessary semicolons that broke luajit.
-rw-r--r--lib/collections.nom28
-rw-r--r--lib/math.nom2
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/collections.nom b/lib/collections.nom
index 376b861..d0d1f02 100644
--- a/lib/collections.nom
+++ b/lib/collections.nom
@@ -99,11 +99,11 @@ immediately:
assume ((%item's "type") is "Var") or barf ".."
List comprehension has the wrong type for the loop variable. Expected Var, but got: \(%item's "type")
return ".."
- (function();
+ (function()
local comprehension = {};
- for i,\(%item as lua) in ipairs(\(%iterable as lua)) do;
+ for i,\(%item as lua) in ipairs(\(%iterable as lua)) do
comprehension[i] = \(%expression as lua);
- end;
+ end
return comprehension;
end)()
parse [%expression for all %iterable] as: %expression for % in %iterable
@@ -114,11 +114,11 @@ immediately:
assume ((%value's "type") is "Var") or barf ".."
List comprehension has the wrong type for the value loop variable. Expected Var, but got: \(%value's "type")
return ".."
- (function();
+ (function()
local comprehension = {};
- for \(%key as lua), \(%value as lua) in pairs(\(%iterable as lua)) do;
- comprehension[i] = \(%expression as lua);
- end;
+ for \(%key as lua), \(%value as lua) in pairs(\(%iterable as lua)) do
+ comprehension[i] = \(%expression as lua)
+ end
return comprehension;
end)()
@@ -128,11 +128,11 @@ immediately:
assume ((%item's "type") is "Var") or barf ".."
Dict comprehension has the wrong type for the loop variable. Expected Var, but got: \(%item's "type")
return ".."
- (function();
+ (function()
local comprehension = {};
- for i,\(%item as lua) in ipairs(\(%iterable as lua)) do;
- comprehension[\(%key as lua)] = \(%value as lua);
- end;
+ for i,\(%item as lua) in ipairs(\(%iterable as lua)) do
+ comprehension[\(%key as lua)] = \(%value as lua)
+ end
return comprehension;
end)()
parse [%key = %value for all %iterable] as: %key = %value for % in %iterable
@@ -143,11 +143,11 @@ immediately:
assume ((%src_value's "type") is "Var") or barf ".."
Dict comprehension has the wrong type for the value loop variable. Expected Var, but got: \(%src_value's "type")
return ".."
- (function();
+ (function()
local comprehension = {};
- for \(%src_key as lua), \(%src_value as lua) in pairs(\(%iterable as lua)) do;
+ for \(%src_key as lua), \(%src_value as lua) in pairs(\(%iterable as lua)) do
comprehension[\(%key as lua)] = \(%value as lua);
- end;
+ end
return comprehension;
end)()
diff --git a/lib/math.nom b/lib/math.nom
index 9e9af98..4e78b7e 100644
--- a/lib/math.nom
+++ b/lib/math.nom
@@ -69,7 +69,7 @@ compile [max of %items by %value_expr] to: ".."
action [seed random with %]:
lua> ".."
math.randomseed(\%);
- for i=1,20 do; math.random(); end;
+ for i=1,20 do math.random(); end
parse [seed random] as: seed random with (=lua "os.time()")
compile [random number, random, rand] to: "math.random()"
compile [random int %n, random integer %n, randint %n] to: "math.random(\(%n as lua))"