From cbd143775295cca490b09eae37c1766389da5edf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 17 Jul 2018 16:13:35 -0700 Subject: Optimization/simplification pass. --- lib/os.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3