From 4cf7c8bacfc836cff5278317cb32dc029cb87273 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 20 Oct 2024 22:47:03 +0300 Subject: play around with guile as a backend + I have officially devolved my language into an alternative syntax for Scheme. Oh well. --- examples/sum.lyn | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 examples/sum.lyn (limited to 'examples/sum.lyn') diff --git a/examples/sum.lyn b/examples/sum.lyn deleted file mode 100644 index 55338f6..0000000 --- a/examples/sum.lyn +++ /dev/null @@ -1,18 +0,0 @@ -syntax for {init cond post body} { - eval init - while {eval cond} { - eval body - eval post - } -} - -def sum {n} { - require n int - let s 0 - for {let i 0} {< i n} {set i (+ i 1)} { - set s (+ s i) - } - return s -} - -println (sum 1000000) -- cgit v1.2.3