This commit is contained in:
msyds committed 2026-09-23 14:57:29 -06:00
1 parent 29b7f46dae
commit 8116f2ca62
2 files changed
+26 -1

No files matched your search

+14 -1
View File
@@ -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]})]