rust runtime

This commit is contained in:
msyds committed 2026-05-19 16:16:03 -06:00
1 parent 78a4fb402d
commit 4e7ddffbc6
16 files changed
+344 -404

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ import Data.Vector.Strict (Vector)
import Data.Function (fix)
import Effectful.Writer.Static.Local
import Gyehoek.Scheme.Syntax qualified as Lam
import Gyehoek.Scheme.Syntax (Name, Prim(..), Lit(..), Sexp (..))
import Gyehoek.Scheme.Syntax (Name, Prim(..), Lit(..))
import Gyehoek.GenSym
import Control.Monad.Cont
import Data.Foldable
@@ -284,7 +284,7 @@ lowerVal
lowerVal (ValLit (LitInt n)) k = k . lowerInt $ n
lowerVal (ValLit (LitQuote (SexpSymbol s))) k = _aaa
-- lowerVal (ValLit (LitQuote (SexpSymbol s))) k = _aaa
lowerVal (ValLit (LitString s)) k = do
rawString <- gensym
+1 -1
View File
@@ -120,5 +120,5 @@ driver = runGenSym . traverseOf_ (#sourceFiles . folded) \f -> do
anfs <- toANF f exps
qbe <- toQBE f anfs
callQBE f
callGCC f ["../runtime/gyehoek.c"]
callGCC f ["../runtime/target/debug/libgyehoek.a"]
pure ()