diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2023-02-18 16:58:51 +1300 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2023-02-18 16:58:51 +1300 |
| commit | 8c33b3d2c69b6800ca34155d62c000250980e47e (patch) | |
| tree | 3e3b5a090de5e0bc5e73e0a81271361e1ffe4e3d /examples/fizzbuzz.dumb | |
| parent | f8a928d18371e0b67741f5d75b8154d1c105327b (diff) | |
Introduce stdlib and fix lexing bug
Diffstat (limited to 'examples/fizzbuzz.dumb')
| -rw-r--r-- | examples/fizzbuzz.dumb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/fizzbuzz.dumb b/examples/fizzbuzz.dumb index c96563f..692402a 100644 --- a/examples/fizzbuzz.dumb +++ b/examples/fizzbuzz.dumb @@ -1,7 +1,7 @@ 1 -WHILE 101 OVER < DO - 3 OVER /% SWAP DROP - OVER 5 SWAP /% SWAP DROP +WHILE 100 OVER <= DO + 3 OVER % + OVER 5 SWAP % IF 0 == DO IF 0 == DO "Fizzbuzz" ELSE "Buzz" END |
