aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-13 18:09:04 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-13 18:09:04 -0700
commite476bfea5261b04e32cd444208bbffa34bc6f475 (patch)
tree1e298777e70f50e9fb7625b45395d8c5c4c91e38 /examples
parentd13bcde2b9306e0c87b055faed88da76bd3ff41e (diff)
Improved code generation for "when" statements using elseif, and
improved code generation for loops by omitting goto labels when not used.
Diffstat (limited to 'examples')
-rw-r--r--examples/how_do_i.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index 4d667cf..9aa15c6 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -136,7 +136,7 @@ repeat:
say "repeat loop #\(%x)"
%x += 1
if (%x > 3):
- break
+ stop repeat-loop
# GOTOs:
do: