From 35a4cea8dafa280b1f7622fea0bffb12c84210b9 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 2 Aug 2012 09:38:15 +1000 Subject: Converted to module --- SemanticMain.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SemanticMain.hs (limited to 'SemanticMain.hs') diff --git a/SemanticMain.hs b/SemanticMain.hs new file mode 100644 index 0000000..7e7fd29 --- /dev/null +++ b/SemanticMain.hs @@ -0,0 +1,12 @@ +import System( getArgs ) +import Text.Printf +import Parse +import Semantic + + + +main = do + args <- getArgs + list <- getLines $ head args + let result = doSemanticCheck (map (stripReturn) list) + printf result -- cgit