aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-17 16:13:35 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-17 16:13:55 -0700
commitcbd143775295cca490b09eae37c1766389da5edf (patch)
tree74a89c6a15173de43fc89ae8632162a37525f716 /lib
parent39a0121856f8230332bcef1b6a7108696f2a765d (diff)
Optimization/simplification pass.
Diffstat (limited to 'lib')
-rw-r--r--lib/os.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/os.nom b/lib/os.nom
index 329a77f..1be7a7e 100644
--- a/lib/os.nom
+++ b/lib/os.nom
@@ -6,7 +6,7 @@ use "core"
action [path of Nomsu file %filename]
lua> ".."
- for f in files.walk(\%filename) do return f end
+ for i,f in files.walk(\%filename) do return f end
barf "Could not find file: \%filename"
action [sh> %cmd]
@@ -21,7 +21,7 @@ action [read file %filename]
compile [for file %f in %path %body] to
Lua ".."
- for \(%f as lua expr) in files.walk(\(%path as lua expr)) do
+ for i,\(%f as lua expr) in files.walk(\(%path as lua expr)) do
\(%body as lua statements)
\(compile as: === next %f ===)
end
@@ -31,7 +31,7 @@ compile [%expr for file %f in %path] to
Lua value ".."
(function()
local ret = list{}
- for \(%f as lua expr) in files.walk(\(%path as lua expr)) do
+ for i,\(%f as lua expr) in files.walk(\(%path as lua expr)) do
ret[#ret+1] = \(%expr as lua statements)
end
return ret