diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:36:15 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-09 14:37:22 -0800 |
| commit | 7d2b7199d87930096b7fd799709fe0105d51eccb (patch) | |
| tree | f33de61cb44357497758bb08ec6993753d8baa43 /core/io.nom | |
| parent | ba96cdfa07cea15ada62f8f89b2563de1286a0de (diff) | |
Lots of cleanups, including expanded use of (... compiles to "text
literal") shorthand, deprecating Lua value, and more use of Lua "..."
with text interpolations.
Diffstat (limited to 'core/io.nom')
| -rw-r--r-- | core/io.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io.nom b/core/io.nom index e12e4eb..edeeab4 100644 --- a/core/io.nom +++ b/core/io.nom @@ -17,9 +17,9 @@ use "core/metaprogramming.nom" (ask %prompt) compiles to: lua> "\ ..if \%prompt.type == "Text" then - return LuaCode.Value(tree.source, "(io.write(", \(%prompt as lua expr), ") and io.read())"); + return LuaCode(tree.source, "(io.write(", \(%prompt as lua expr), ") and io.read())"); else - return LuaCode.Value(tree.source, "(io.write(tostring(", \(..) + return LuaCode(tree.source, "(io.write(tostring(", \(..) %prompt as lua expr .., ")) and io.read())"); end" |
