tricu/src/Main.hs

23 lines
486 B
Haskell
Raw Normal View History

module Main where
import Eval
import Lexer
import Library
import Parser
import REPL (repl)
import Research
2024-12-27 08:17:06 -06:00
import qualified Data.Map as Map
import Text.Megaparsec (runParser)
main :: IO ()
main = do
putStrLn "Welcome to the tricu Interpreter"
putStrLn "You can exit at any time by typing and entering: "
putStrLn ":_exit"
repl library
2024-12-29 08:29:25 -06:00
runTricu :: String -> T
runTricu s = result (evalTricu Map.empty $ parseTricu s)
runTricuEnv env s = result (evalTricu env $ parseTricu s)