aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/consolecolor.nom6
-rw-r--r--lib/os.nom30
-rw-r--r--lib/version.nom2
3 files changed, 18 insertions, 20 deletions
diff --git a/lib/consolecolor.nom b/lib/consolecolor.nom
index 4b231a9..d8b078f 100644
--- a/lib/consolecolor.nom
+++ b/lib/consolecolor.nom
@@ -15,9 +15,9 @@ test:
for %name = %colornum in %colors:
%colornum = "\%colornum"
#(=lua "COMPILE_ACTIONS").%name = (..)
- [%nomsu, %tree] -> (Lua value "'\\027[\(%colornum)m'")
+ [%nomsu, %tree] -> (Lua "'\\027[\(%colornum)m'")
%compile.action.%name = (..)
[%nomsu, %tree, %text] ->:
if %text:
- return (Lua value "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')")
- ..else: return (Lua value "'\\027[\(%colornum)m'")
+ return (Lua "('\\027[\(%colornum)m'..\(%text as lua expr)..'\\027[0m')")
+ ..else: return (Lua "'\\027[\(%colornum)m'")
diff --git a/lib/os.nom b/lib/os.nom
index 2da395c..64b46c2 100644
--- a/lib/os.nom
+++ b/lib/os.nom
@@ -21,23 +21,21 @@ externally (read file %filename) means (=lua "Files.read(\%filename)")
test:
for file %f in "core": do nothing
-(for file %f in %path %body) compiles to (..)
- Lua "\
- ..for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
- \(%body as lua statements)
- \(what (===next %f ===) compiles to)
- end
- \(what (===stop %f ===) compiles to)"
+(for file %f in %path %body) compiles to "\
+ ..for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
+ \(%body as lua statements)
+ \(what (===next %f ===) compiles to)
+ end
+ \(what (===stop %f ===) compiles to)"
-(%expr for file %f in %path) compiles to (..)
- Lua value "\
- ..(function()
- local ret = List{}
- for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
- ret[#ret+1] = \(%expr as lua statements)
- end
- return ret
- end)()"
+(%expr for file %f in %path) compiles to "\
+ ..(function()
+ local ret = List{}
+ for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
+ ret[#ret+1] = \(%expr as lua statements)
+ end
+ return ret
+ end)()"
externally [..]
write to file %filename %text, to file %filename write %text
diff --git a/lib/version.nom b/lib/version.nom
index 2f4003f..ee9ac92 100644
--- a/lib/version.nom
+++ b/lib/version.nom
@@ -1,3 +1,3 @@
#!/usr/bin/env nomsu -V4.8.10
# This file sets the current library version.
-lua> "NOMSU_LIB_VERSION = 6"
+lua> "NOMSU_LIB_VERSION = 7"