From 03d38eb3190eb5e51fb18847fe0792013285bde5 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 8 Apr 2014 15:06:40 +1000 Subject: Reorganising source code --- src/SemanticMain.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/SemanticMain.hs (limited to 'src/SemanticMain.hs') diff --git a/src/SemanticMain.hs b/src/SemanticMain.hs new file mode 100644 index 0000000..c07fc8c --- /dev/null +++ b/src/SemanticMain.hs @@ -0,0 +1,12 @@ +import System.Environment( getArgs ) +import Text.Printf +import Library.Parse +import Library.Semantic + + + +main = do + args <- getArgs + list <- getLines (head args) + let result = doSemanticCheck (map (stripReturn) list) + printf result -- cgit