add loop & recur back into the language: we do actually need it!--just not *pedagogically*

This commit is contained in:
Scott Richmond 2024-07-19 16:25:18 -04:00
parent 7afc32d9d1
commit 2ec95c8f33

View File

@ -11,22 +11,20 @@
"if" :if ## impl "if" :if ## impl
"import" :import ## impl "import" :import ## impl
"let" :let ## impl "let" :let ## impl
"loop" :loop ## impl
"match" :match ## impl "match" :match ## impl
"nil" :nil ## impl -> literal word "nil" :nil ## impl -> literal word
"ns" :ns ## impl "ns" :ns ## impl
"panic!" :panic ## impl (should _not_ be a function) "panic!" :panic ## impl (should _not_ be a function)
"pkg" :pkg "pkg" :pkg
"recur" :recur ## impl
"repeat" :repeat ## impl "repeat" :repeat ## impl
"test" :test "test" :test
"then" :then ## impl "then" :then ## impl
"true" :true ## impl -> literal word "true" :true ## impl -> literal word
"use" :use ## wip "use" :use ## wip
"when" :when ## impl, replaces cond "when" :when ## impl, replaces cond
"with" :with ## impl "with" :with ## impl
# removing loop & recur from the language
# they aren't necessary
# "loop" :loop ## impl
# "recur" :recur ## impl
}) })
(def literal-words {"true" true (def literal-words {"true" true