From 2ec95c8f33c7566730c1dd6675b86787d5a3891e Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Fri, 19 Jul 2024 16:25:18 -0400 Subject: [PATCH] add loop & recur back into the language: we do actually need it!--just not *pedagogically* --- src/scanner.janet | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/scanner.janet b/src/scanner.janet index 1375bd7..0f14dd7 100644 --- a/src/scanner.janet +++ b/src/scanner.janet @@ -11,22 +11,20 @@ "if" :if ## impl "import" :import ## impl "let" :let ## impl + "loop" :loop ## impl "match" :match ## impl "nil" :nil ## impl -> literal word "ns" :ns ## impl "panic!" :panic ## impl (should _not_ be a function) "pkg" :pkg + "recur" :recur ## impl "repeat" :repeat ## impl "test" :test "then" :then ## impl "true" :true ## impl -> literal word "use" :use ## wip "when" :when ## impl, replaces cond - "with" :with ## impl - # removing loop & recur from the language - # they aren't necessary - # "loop" :loop ## impl - # "recur" :recur ## impl + "with" :with ## impl }) (def literal-words {"true" true