diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 20:27:15 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 20:27:27 -0700 |
| commit | 6728587dfc6a5f4090f2673113ffedb2be924daf (patch) | |
| tree | 77591abacd8760bedaa30110570613ef263220fe /core/io.nom | |
| parent | c9df1bc3e881b2ebcf5808a0db7bea29cd07c849 (diff) | |
Auto-formatted and auto-upgraded everything!
Diffstat (limited to 'core/io.nom')
| -rw-r--r-- | core/io.nom | 7 |
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 |
