summaryrefslogtreecommitdiff
path: root/SemanticMain.hs
diff options
context:
space:
mode:
Diffstat (limited to 'SemanticMain.hs')
-rw-r--r--SemanticMain.hs12
1 files changed, 12 insertions, 0 deletions
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