This commit is contained in:
1 parent
29b7f46dae
commit
8116f2ca62
2 files changed
+26
-1
No files matched your search
+14
-1
@@ -256,7 +256,20 @@
|
||||
(-> "t.scm"
|
||||
slurp
|
||||
(scm/read-syntax :library? true)
|
||||
expand-library)
|
||||
expand-library
|
||||
;; :library/declarations
|
||||
;; second
|
||||
;; second
|
||||
;; scm/syntax->datum
|
||||
(update :library/declarations
|
||||
(fn [decls]
|
||||
(for [decl decls]
|
||||
(match decl
|
||||
[:begin & xs] (->> xs
|
||||
(map scm/syntax->datum)
|
||||
(cons :begin)
|
||||
vec)
|
||||
:else decl)))))
|
||||
(let [scopeholder (scm/new-scopeholder)
|
||||
env {[:global 'lambda] [:primitive 'lambda]}
|
||||
store-atom (atom {['lambda #{}] [:global 'lambda]})]
|
||||
|
||||
Reference in new issue
Block a user