g-machine mark 1 hooray

This commit is contained in:
crumbtoo
2023-11-30 09:16:51 -07:00
parent 0c06550189
commit 2d62038d07
4 changed files with 73 additions and 19 deletions

View File

@@ -110,6 +110,13 @@ listExample3 = [coreProg|
main = foldr (+#) 0 list;
|]
simple1 = [coreProg|
k a b = a;
s f g x = f x (g x);
main = s k k 3;
|]
corePrelude :: Module
corePrelude = Module (Just ("Prelude", [])) $
-- non-primitive defs