diff options
Diffstat (limited to 'stdlib/source/lux/target/lua.lux')
-rw-r--r-- | stdlib/source/lux/target/lua.lux | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/stdlib/source/lux/target/lua.lux b/stdlib/source/lux/target/lua.lux index c557c7feb..29d4b82b3 100644 --- a/stdlib/source/lux/target/lua.lux +++ b/stdlib/source/lux/target/lua.lux @@ -297,6 +297,13 @@ (..nest (:representation body!)) text.new_line "end"))) + (def: #export (repeat until body!) + (-> Expression Statement Statement) + (:abstraction + (format "repeat" + (..nest (:representation body!)) + text.new_line "until " (:representation until)))) + (def: #export (for_in vars source body!) (-> (List Var) Expression Statement Statement) (:abstraction @@ -396,10 +403,12 @@ [["error"] ["print"] ["require"] - ["type"]]] + ["type"] + ["ipairs"]]] [2 - [["print"]]] + [["print"] + ["error"]]] [3 [["print"]]] |