work on type inference some more
[ccc.git] / splc.c
diff --git a/splc.c b/splc.c
index f4f6682..6e5c5ab 100644 (file)
--- a/splc.c
+++ b/splc.c
@@ -6,7 +6,7 @@
 #include "genc.h"
 #include "parse.h"
 #include "scan.h"
-#include "type.h"
+#include "sem.h"
 extern int yylex_destroy(void);
 
 void usage(FILE *out, char *arg0)
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
                ast_print(result, stdout);
 
        //Typecheck
-       if ((result  = type(result)) == NULL) {
+       if ((result  = sem(result)) == NULL) {
                return 1;
        }
        if (ptype)
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
        free(cfile);
        switch(lang) {
        case langc:
-               r = genc(result, cout);
+//             genc(result, cout);
                break;
        default:
                die("unsupported language\n");