summaryrefslogtreecommitdiff
path: root/examples/fizzbuzz.dumb
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-02-24 23:03:33 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-02-24 23:03:33 +1300
commit1977b7ad1e86d2b922737eb04741607e9c9a991a (patch)
tree24653cb78f5411e79d1ede853115ca38ccd80aa4 /examples/fizzbuzz.dumb
parentb89d46e7df8ae65786abe37b5703392e9042db83 (diff)
Better printing functionsmain
Diffstat (limited to 'examples/fizzbuzz.dumb')
-rw-r--r--examples/fizzbuzz.dumb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fizzbuzz.dumb b/examples/fizzbuzz.dumb
index f9aa648..3cd0dba 100644
--- a/examples/fizzbuzz.dumb
+++ b/examples/fizzbuzz.dumb
@@ -10,6 +10,6 @@ PROC MAIN
''' concat the two strings and copy the inc., if the string is empty, swap them '''
++ OVER SWAP IF DUP "" == DO SWAP END
''' print the top of the stack, drop the next item, add 1 to inc. '''
- . DROP 1 +
+ PUTLN DROP 1 +
END
END