Update reserved words list & impl
This commit is contained in:
parent
5c07f43713
commit
e7eccca000
|
@ -8,9 +8,9 @@
|
||||||
(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" ::token/as
|
{
|
||||||
|
"as" ::token/as ;; impl for `import`; not yet for patterns
|
||||||
"cond" ::token/cond ;; impl
|
"cond" ::token/cond ;; impl
|
||||||
"data" ::token/data
|
|
||||||
"do" ::token/do ;; impl
|
"do" ::token/do ;; impl
|
||||||
"else" ::token/else ;; impl
|
"else" ::token/else ;; impl
|
||||||
"false" ::token/false ;; impl
|
"false" ::token/false ;; impl
|
||||||
|
@ -23,21 +23,28 @@
|
||||||
"nil" ::token/nil ;; impl
|
"nil" ::token/nil ;; impl
|
||||||
"ns" ::token/ns ;; impl
|
"ns" ::token/ns ;; impl
|
||||||
"recur" ::token/recur
|
"recur" ::token/recur
|
||||||
"ref" ::token/ref
|
"ref" ::token/ref ;; impl
|
||||||
"then" ::token/then ;; impl
|
"then" ::token/then ;; impl
|
||||||
"true" ::token/true ;; impl
|
"true" ::token/true ;; impl
|
||||||
"with" ::token/with ;; impl
|
"with" ::token/with ;; impl
|
||||||
;; below here, probable
|
;; below here, probable
|
||||||
"defer" ::token/defer
|
"data" ::token/data
|
||||||
"gen" ::token/gen
|
"receive" ::token/receive
|
||||||
"mut" ::token/mut
|
|
||||||
"repeat" ::token/repeat
|
"repeat" ::token/repeat
|
||||||
|
"self" ::token/self
|
||||||
|
"send" ::token/send
|
||||||
|
"spawn" ::token/spawn
|
||||||
"test" ::token/test
|
"test" ::token/test
|
||||||
|
"to" ::token/to
|
||||||
|
"when" ::token/when
|
||||||
|
;; below here, possible
|
||||||
|
"gen" ::token/gen
|
||||||
|
"defer" ::token/defer
|
||||||
|
"mut" ::token/mut
|
||||||
"var" ::token/var
|
"var" ::token/var
|
||||||
"wait" ::token/wait
|
"wait" ::token/wait
|
||||||
"yield" ::token/yield
|
"yield" ::token/yield
|
||||||
;; below here, possible
|
})
|
||||||
"when" ::token/when})
|
|
||||||
|
|
||||||
(defn- new-scanner
|
(defn- new-scanner
|
||||||
"Creates a new scanner."
|
"Creates a new scanner."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user