diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-18 01:49:13 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-18 01:49:27 -0800 |
| commit | f91d06d9fa567b26a098ff26a0339afdd5daa778 (patch) | |
| tree | 6899c345433629b05c5b51f6545ae7ba02a692e7 /lib/control_flow.nom | |
| parent | 12cc294c7ac31e3d08d6b8924dfc6cc427a1f712 (diff) | |
Initial commit of object oriented classes.
Diffstat (limited to 'lib/control_flow.nom')
| -rw-r--r-- | lib/control_flow.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/control_flow.nom b/lib/control_flow.nom index 7455ee9..dd602ff 100644 --- a/lib/control_flow.nom +++ b/lib/control_flow.nom @@ -75,7 +75,7 @@ immediately: action [tree %tree has function call %call]: lua> ".." local target = (\%call).stub; - for subtree,_ in coroutine.wrap(function() nomsu:walk_tree(\%tree); end) do + for subtree,depth in coroutine.wrap(function() nomsu:walk_tree(\%tree); end) do if type(subtree) == 'table' and subtree.type == "FunctionCall" and subtree.stub == target then return true; @@ -397,7 +397,7 @@ immediately: # Do/finally: immediately: compile [do %action] to code: - (%action as lua statements) if ((%action's "type") is "Block") + "do\n \(%action as lua statements)\nend" if ((%action's "type") is "Block") ..else "(\(%action as lua))(nomsu);" compile [do %action then always %final_action] to code: ".." |
