cps
This commit is contained in:
1 parent
59c96f9ffb
commit
817b7530c1
2 files changed
+7
-1
No files matched your search
@@ -5,6 +5,7 @@ module Gyehoek.CPS.Convert
|
||||
import Gyehoek.CPS.Syntax
|
||||
import Gyehoek.Scheme.Syntax qualified as Scm
|
||||
import Gyehoek.GenSym
|
||||
import Data.List.NonEmpty (NonEmpty((:|)))
|
||||
import Effectful
|
||||
import Control.Monad.Cont qualified as Cont
|
||||
|
||||
@@ -28,4 +29,9 @@ convert (Scm.ExpPrim p) k =
|
||||
r <- gensym' "r"
|
||||
ExpPrim p' [r] . pure <$> k (ValVar r)
|
||||
|
||||
convert _ _ = _
|
||||
convert (Scm.ExpApply f xs) k =
|
||||
telescope (convert @es) (f:|xs) \(f':|xs') -> do
|
||||
_
|
||||
_
|
||||
|
||||
convert _ k = _
|
||||
Reference in new issue
Block a user