diff options
author | Li Jin <dragon-fly@qq.com> | 2023-12-13 17:32:53 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-12-13 17:33:13 +0800 |
commit | 3c4cbff4d88892f153b70ccbbc69d1087ecbcc49 (patch) | |
tree | 0d9f1db9552bfb4106e424b33b51062cf96f8a02 /src/yue_wasm.cpp | |
parent | de5fdb3e3f739582e40500cca9ff4bf6a4fc192f (diff) | |
download | yuescript-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.cpp | 2 |
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" |