Add a -parse option for future distinguishment.

This commit is contained in:
2011-02-04 13:14:48 -05:00
parent 566560edb4
commit f5bc625500

View File

@@ -28,6 +28,10 @@ main = do
Right ress -> do
mapM_ putStrLn ress
putStrLn "Successful lex."
["-parse",path] -> do
ast <- loadModule path
putStrLn "Successful parse!"
putStrLn (show ast)
_ -> fail "Unacceptable arguments."
pullTokens :: Parser [String]