fix: closure-conversion of recursive functions
build / build (push) Successful in 1m28s

This commit is contained in:
msyds committed 2026-08-30 02:12:16 -06:00
1 parent 03797d573b
commit 276c2c1249
3 files changed
+17 -15

No files matched your search

+2
View File
@@ -81,6 +81,7 @@ data Prim e
| PrimZeroP e
| PrimNewline
| PrimMakeClosure { code :: e, env :: List e }
| PrimEnv
| PrimEnvRef Int
| PrimEnvCode e
| PrimCallCC e
@@ -167,6 +168,7 @@ primDatumIso namefn a = S.match
$ S.With (. ht1 "zero?")
$ S.With (. ht0 "newline")
$ S.With (. ht1' "make-closure")
$ S.With (. ht0 "env")
$ S.With (. S.headTagged1 (namefn "env-ref") S.int)
$ S.With (. ht1 "env-code")
$ S.With (. ht1 "call/cc")