Further library additions and REPL updates

This commit is contained in:
James Eversole
2024-12-27 19:27:04 -06:00
parent c820eda816
commit 44e2169cdb
4 changed files with 21 additions and 14 deletions

View File

@ -11,7 +11,11 @@ import qualified Data.Map as Map
import Text.Megaparsec (runParser)
main :: IO ()
main = repl library
main = do
putStrLn "Welcome to the Sapling Interpreter"
putStrLn "You can exit at any time by typing and entering: "
putStrLn ":_exit"
repl library
runSapling :: String -> String
runSapling s = show $ result (evalSapling Map.empty $ parseSapling s)