diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 09:38:15 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 09:38:15 +1000 |
commit | 35a4cea8dafa280b1f7622fea0bffb12c84210b9 (patch) | |
tree | da7725992323d5751317334a15afe16127fbdda0 /SemanticMain.hs | |
parent | ea042911e5062d7cecf0ead734c039cae5265b6c (diff) |
Converted to module
Diffstat (limited to 'SemanticMain.hs')
-rw-r--r-- | SemanticMain.hs | 12 |
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 |