Removed unnecessary semicolons that broke luajit.
This commit is contained in:
parent
d82c4f85d8
commit
4c059a7f9b
@ -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)()
|
||||
|
||||
|
@ -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))"
|
||||
|
Loading…
Reference in New Issue
Block a user