]> ruin.nu Git - proglang.git/blobdiff - Compile.hs
merged changes to function branch
[proglang.git] / Compile.hs
index 2252fc539064b6666fead76092317d1a16f31593..eb70d0c8223e9e71ec356cce274f850ad454239b 100644 (file)
@@ -7,8 +7,8 @@ cHeader = "#include <stdio.h>\nint read(){\nint n;\nscanf(\"%d\",&n);\nreturn n;
 
 cFooter = "return 0;}"
 
-compile :: [Stm] -> String
-compile s = cHeader++concat (map compileStm s)++cFooter
+compile :: [Func] -> [Stm] -> String
+compile s = cHeader++concat (map compileStm s)++cFooter
 
 compileExp :: Exp -> String
 compileExp (EBool True) = "1";