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 (def reserved-words
"List of Ludus reserved words." "List of Ludus reserved words."
## see ludus-spec repo for more info ## see ludus-spec repo for more info
{"as" :as ## impl {
"as" :as ## impl
"box" :ref "box" :ref
"do" :do ## impl "do" :do ## impl
"else" :else ## impl "else" :else ## impl
@ -10,21 +11,23 @@
"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
"test" :test
"then" :then ## impl "then" :then ## impl
"true" :true ## impl -> literal word "true" :true ## impl -> literal word
"use" :use ## wip "use" :use ## wip
"with" :with ## impl
"when" :when ## impl, replaces cond "when" :when ## impl, replaces cond
"repeat" :repeat ## syntax sugar over "loop": still unclear what this syntax could be "with" :with ## impl
"test" :test # 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
"false" false "false" false