Update reserved words list & impl

This commit is contained in:
Scott Richmond 2022-05-18 18:32:34 -04:00
parent 5c07f43713
commit e7eccca000

View File

@ -8,9 +8,9 @@
(def reserved-words
"List of Ludus reserved words."
;; see ludus-spec repo for more info
{"as" ::token/as
{
"as" ::token/as ;; impl for `import`; not yet for patterns
"cond" ::token/cond ;; impl
"data" ::token/data
"do" ::token/do ;; impl
"else" ::token/else ;; impl
"false" ::token/false ;; impl
@ -23,21 +23,28 @@
"nil" ::token/nil ;; impl
"ns" ::token/ns ;; impl
"recur" ::token/recur
"ref" ::token/ref
"ref" ::token/ref ;; impl
"then" ::token/then ;; impl
"true" ::token/true ;; impl
"with" ::token/with ;; impl
;; below here, probable
"defer" ::token/defer
"gen" ::token/gen
"mut" ::token/mut
"data" ::token/data
"receive" ::token/receive
"repeat" ::token/repeat
"self" ::token/self
"send" ::token/send
"spawn" ::token/spawn
"test" ::token/test
"to" ::token/to
"when" ::token/when
;; below here, possible
"gen" ::token/gen
"defer" ::token/defer
"mut" ::token/mut
"var" ::token/var
"wait" ::token/wait
"yield" ::token/yield
;; below here, possible
"when" ::token/when})
})
(defn- new-scanner
"Creates a new scanner."