aboutsummaryrefslogtreecommitdiff
path: root/src/yue_wasm.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-13 17:32:53 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-13 17:33:13 +0800
commit3c4cbff4d88892f153b70ccbbc69d1087ecbcc49 (patch)
tree0d9f1db9552bfb4106e424b33b51062cf96f8a02 /src/yue_wasm.cpp
parentde5fdb3e3f739582e40500cca9ff4bf6a4fc192f (diff)
downloadyuescript-3c4cbff4d88892f153b70ccbbc69d1087ecbcc49.tar.gz
yuescript-3c4cbff4d88892f153b70ccbbc69d1087ecbcc49.tar.bz2
yuescript-3c4cbff4d88892f153b70ccbbc69d1087ecbcc49.zip
add yue.format() function. fix yue ast to code function issues.
Diffstat (limited to 'src/yue_wasm.cpp')
-rw-r--r--src/yue_wasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue_wasm.cpp b/src/yue_wasm.cpp
index 4a054e6..daa5757 100644
--- a/src/yue_wasm.cpp
+++ b/src/yue_wasm.cpp
@@ -138,7 +138,7 @@ std::string exec(const std::string& codes) {
138 }; 138 };
139 139
140 execStr(R"yuescript( 140 execStr(R"yuescript(
141_G.__output = {} 141_G.__output = []
142_G.print = (...)-> 142_G.print = (...)->
143 _G.__output[] = table.concat [tostring select i, ... for i = 1, select "#", ...], " " 143 _G.__output[] = table.concat [tostring select i, ... for i = 1, select "#", ...], " "
144 _G.__output[] = "\n" 144 _G.__output[] = "\n"