considering scrapping this parser...

This commit is contained in:
Yehowshua Immanuel 2024-12-09 22:51:27 -05:00
parent 87ca7637d8
commit 8430ca214e
5 changed files with 71 additions and 75 deletions

View file

@ -18,9 +18,9 @@ main = do
-- Attempt to read the file
contents <- catch (readFile filePath) handleReadError
putStrLn "File Contents:"
putStrLn $ Haskellator.preProcessDiscardComments contents
putStrLn $ ppShow $ Haskellator.runParser contents
[] -> putStrLn "cabal run Haskellator -- <file-path>"
putStrLn $ ppShow Haskellator.val
-- putStrLn $ ppShow Haskellator.val
-- Handle potential file reading errors
handleReadError :: IOException -> IO String