remove loop & recur from the language

This commit is contained in:
Scott Richmond 2024-07-19 16:11:30 -04:00
parent d4adc1d912
commit 7afc32d9d1

View File

@ -1,7 +1,8 @@
(def reserved-words
"List of Ludus reserved words."
## see ludus-spec repo for more info
{"as" :as ## impl
{
"as" :as ## impl
"box" :ref
"do" :do ## impl
"else" :else ## impl
@ -10,21 +11,23 @@
"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
"with" :with ## impl
"when" :when ## impl, replaces cond
"repeat" :repeat ## syntax sugar over "loop": still unclear what this syntax could be
"test" :test
})
"with" :with ## impl
# removing loop & recur from the language
# they aren't necessary
# "loop" :loop ## impl
# "recur" :recur ## impl
})
(def literal-words {"true" true
"false" false