--- trunk/src/driver/main.sml 2010/05/27 15:16:48 92 +++ trunk/src/driver/main.sml 2010/05/27 15:32:06 93 @@ -32,10 +32,13 @@ in case Parser.parseFile (errStrm, inS) of NONE => (checkForErrors errStrm; quitWithError ()) - | SOME pt => ( - checkForErrors errStrm; - ignore (checkTypes pt) handle Typechecker.Error => (); - checkForErrors errStrm) + | SOME pt => let + val _ = checkForErrors errStrm; + val ast = (checkTypes pt) handle Typechecker.Error => AST.Program[] + in + checkForErrors errStrm; + ASTPP.output (TextIO.stdOut, ast) (* DEBUG *) + end (* end case *); TextIO.closeIn inS end
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: put (TextIO.stdOut, ast) (* DEBUG *) + end (* end case *); TextIO.closeIn inS end