aboutsummaryrefslogtreecommitdiff
path: root/core/io.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/io.nom')
-rw-r--r--core/io.nom7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/io.nom b/core/io.nom
index b06ebb3..0b24ca5 100644
--- a/core/io.nom
+++ b/core/io.nom
@@ -1,8 +1,9 @@
-#!/usr/bin/env nomsu -V2.4.4.3
+#!/usr/bin/env nomsu -V2.5.4.3
#
This file contains basic input/output code
use "core/metaprogramming.nom"
+
compile [say %message] to (..)
lua> ".."
if \%message.type == "Text" then
@@ -16,5 +17,7 @@ compile [ask %prompt] to (..)
if \%prompt.type == "Text" then
return LuaCode.Value(tree.source, "(io.write(", \(%prompt as lua expr), ") and io.read())");
else
- return LuaCode.Value(tree.source, "(io.write(tostring(", \(%prompt as lua expr), ")) and io.read())");
+ return LuaCode.Value(tree.source, "(io.write(tostring(", \(..)
+ %prompt as lua expr
+ .., ")) and io.read())");
end \ No newline at end of file