aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux')
-rw-r--r--stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux b/stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux
index d77a51d8a..bfb1ab115 100644
--- a/stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux
+++ b/stdlib/source/library/lux/tool/compiler/language/lux/phase/generation/lua/runtime.lux
@@ -105,7 +105,7 @@
(syntax: .public (with_vars {vars (<code>.tuple (<>.some <code>.local_identifier))}
body)
(do {! meta.monad}
- [ids (monad.seq ! (list.repeat (list.size vars) meta.seed))]
+ [ids (monad.seq ! (list.repeated (list.size vars) meta.seed))]
(in (list (` (let [(~+ (|> vars
(list.zipped/2 ids)
(list\map (function (_ [id var])
@@ -174,9 +174,9 @@
($_ _.then
(_.local/1 last_index_right (..last_index tuple))
(_.if (_.> lefts last_index_right)
- ## No need for recursion
+ ... No need for recursion
(_.return (..item lefts tuple))
- ## Needs recursion
+ ... Needs recursion
<recur>)))))
(runtime: (tuple//right lefts tuple)
@@ -188,7 +188,7 @@
(_.cond (list [(_.= last_index_right right_index)
(_.return (..item right_index tuple))]
[(_.> last_index_right right_index)
- ## Needs recursion.
+ ... Needs recursion.
<recur>])
(_.return (_.apply/* (list tuple
(_.+ (_.int +1) right_index)
@@ -206,7 +206,7 @@
is_last? (_.= ..unit sum_flag)
extact_match! (_.return sum_value)
test_recursion! (_.if is_last?
- ## Must recurse.
+ ... Must recurse.
($_ _.then
(_.set (list wanted_tag) (_.- sum_tag wanted_tag))
(_.set (list sum) sum_value))
@@ -319,7 +319,7 @@
(-> Expression Expression)
(_.- (_.int +1)))
-## TODO: Remove this once the Lua compiler becomes self-hosted.
+... TODO: Remove this once the Lua compiler becomes self-hosted.
(def: on_rembulan?
(_.= (_.string "Lua 5.3")
(_.var "_VERSION")))
@@ -353,7 +353,7 @@
text
(..byte_index text offset)
(|> (_.+ offset length)
- ## (_.+ (_.int +1))
+ ... (_.+ (_.int +1))
(..byte_index text)
(_.- (_.int +1)))))]
(for {@.lua <normal>}