sem update'
[cc1516.git] / spl.icl
diff --git a/spl.icl b/spl.icl
index 28b95fb..93374a5 100644 (file)
--- a/spl.icl
+++ b/spl.icl
@@ -16,6 +16,7 @@ from Text import class Text(concat), instance Text String
 
 import parse
 import lex
+import sem
 import AST
 from yard import :: Error, instance toString Error
 
@@ -60,10 +61,15 @@ Start w
                        stdin <<< "//LEXER\n" <<< printTokens toks <<< "//LEXER\n"
                _ = stdin)
        # parseOut = parser lexOut
-       # stdin = if (not args.parse) stdin (case parser lexOut of
+       # stdin = if (not args.parse) stdin (case parseOut of
                (Right ast) = 
                        stdin <<<  "//PARSER\n" <<< toString ast <<< "//PARSER\n" 
                (Left parse) = stdin <<< toString parse)
+       # semOut = sem parseOut
+       # stdin = case semOut of
+               (Right ast) = 
+                       stdin <<<  "//TYPE\n" <<< toString ast <<< "//TYPE\n" 
+               (Left parse) = stdin <<< toString parse
        = snd $ fclose stdin w
                where
                        printTokens :: [Token] -> String