Minor cleanups

This commit is contained in:
Bruce Hill 2018-06-18 18:39:21 -07:00
parent f83cc3ad8a
commit 7f98262dfa
2 changed files with 6 additions and 14 deletions

View File

@ -250,8 +250,7 @@ compile [..]
%lua <- %lua <-
Lua ".." Lua ".."
do -- scope for stopping for % = % loop do -- scope for stopping for % = % loop
\%lua \%lua\%stop_labels
\%stop_labels
end end
return %lua return %lua
@ -378,11 +377,4 @@ compile [do %action then always %final_action] to
# Inline thunk: # Inline thunk:
compile [result of %body] to compile [result of %body] to
%body <- (%body as lua statements) Lua value "(\(compile as: [] -> %body))()"
declare locals in %body
return
Lua value ".."
(function()
\%body
end)()

View File

@ -110,7 +110,7 @@ compile [parse %actions as %body] to
"\nreturn nomsu:compile(tree)") "\nreturn nomsu:compile(tree)")
return \(compile as: compile %actions to %new_body) return \(compile as: compile %actions to %new_body)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compile [remove action %action] to compile [remove action %action] to
Lua ".." Lua ".."