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/if.lyn | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 examples/if.lyn (limited to 'examples/if.lyn') diff --git a/examples/if.lyn b/examples/if.lyn deleted file mode 100644 index 294a490..0000000 --- a/examples/if.lyn +++ /dev/null @@ -1,15 +0,0 @@ -# `if` macro, think of it as a statement I guess? -# else is used by the `if` command in C, presumably? -if {< i 10} { - println "a" -} {< i 20} { - println "b" -} else { - println "c" -} - -# `if` procedure, think of it as expr-if in other languages I guess -# note that all arguments get evaluated here, so if you have a slow function in -# one branch you should probably prefer `if` statements - -let x (do-if (< i 10) "a" (< i 20) "b" else "c") -- cgit v1.2.3