start with type inference
[ccc.git] / splc.c
diff --git a/splc.c b/splc.c
index aeb2e89..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)