From 7d2b7199d87930096b7fd799709fe0105d51eccb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 14:36:15 -0800 Subject: Lots of cleanups, including expanded use of (... compiles to "text literal") shorthand, deprecating Lua value, and more use of Lua "..." with text interpolations. --- core/io.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/io.nom') 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" -- cgit v1.2.3