X-Git-Url: https://ruin.nu/git/?p=proglang.git;a=blobdiff_plain;f=Typechecker.hs;h=d9b1e1047b67d8b355dca3290ac93173b4e0417d;hp=87054767c896ee26b405b0af976f0b4bd09f5050;hb=2316d61f350f8b39c9a3f76b91d1d14796d5183b;hpb=b2a94f77235a88731d63a1251f53720f869492c8 diff --git a/Typechecker.hs b/Typechecker.hs index 8705476..d9b1e10 100644 --- a/Typechecker.hs +++ b/Typechecker.hs @@ -40,6 +40,7 @@ run v p s = let ts = myLLexer s in case p ts of putStrLn "\nParse Successful!" showTree v (Program s) runStateT (mapM typeCheckStm s) [empty] + print "The program is type-correct!!" return () showTree :: (Show a, Print a) => Int -> a -> IO ()