now parsing memory statements

This commit is contained in:
Yehowshua Immanuel 2024-12-06 14:57:32 -05:00
parent cbbc7e73bd
commit 38fb13556f
6 changed files with 103 additions and 24 deletions

View file

@ -3,6 +3,7 @@ module Main where
import System.Environment (getArgs)
import System.IO
import Control.Exception (catch, IOException)
import Text.Show.Pretty (ppShow)
import Haskellator
@ -19,7 +20,7 @@ main = do
putStrLn "File Contents:"
putStrLn contents
[] -> putStrLn "cabal run Haskellator -- <file-path>"
putStrLn $ show Haskellator.val
putStrLn $ ppShow Haskellator.val
-- Handle potential file reading errors
handleReadError :: IOException -> IO String