diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 16:13:35 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 16:13:55 -0700 |
| commit | cbd143775295cca490b09eae37c1766389da5edf (patch) | |
| tree | 74a89c6a15173de43fc89ae8632162a37525f716 /lib/os.nom | |
| parent | 39a0121856f8230332bcef1b6a7108696f2a765d (diff) | |
Optimization/simplification pass.
Diffstat (limited to 'lib/os.nom')
| -rw-r--r-- | lib/os.nom | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
