diff options
Diffstat (limited to 'lib/os.nom')
| -rw-r--r-- | lib/os.nom | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -23,6 +23,16 @@ compile [for file %f in %path %body] to end \(compile as: === stop %f ===) +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 + ret[#ret+1] = \(%expr as lua statements) + end + return ret + end)() + action [write to file %filename %text, to file %filename write %text] lua> ".." local file = io.open(\%filename, 'w') |
