From 8c33b3d2c69b6800ca34155d62c000250980e47e Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sat, 18 Feb 2023 16:58:51 +1300 Subject: Introduce stdlib and fix lexing bug --- examples/fizzbuzz.dumb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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 -- cgit v1.2.1