diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:16 -0700 |
| commit | e22c35681f90740b4f5006c30b3f154ebd1f8ea2 (patch) | |
| tree | c7f04d968bade120ebf75cfa0b9f073602917122 /core/io.nom | |
| parent | 7112af7cb6ee52f4ef9664db9c03db52d8c73ac9 (diff) | |
Auto-upgraded everything.
Diffstat (limited to 'core/io.nom')
| -rw-r--r-- | core/io.nom | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/io.nom b/core/io.nom index d656419..1e87209 100644 --- a/core/io.nom +++ b/core/io.nom @@ -1,23 +1,23 @@ -#!/usr/bin/env nomsu -V3.8.7.6 +#!/usr/bin/env nomsu -V4.8.8.6 # This file contains basic input/output code use "core/metaprogramming.nom" compile [say %message] to (..) - lua> ".." - if \%message.type == "Text" then + lua> "\ + ..if \%message.type == "Text" then return LuaCode(tree.source, "print(", \(%message as lua expr), ");"); else return LuaCode(tree.source, "print(tostring(", \(%message as lua expr), "));"); - end + end" compile [ask %prompt] to (..) - lua> ".." - if \%prompt.type == "Text" then + lua> "\ + ..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())"); - end + end" |
