perga/app/Main.hs
2024-10-06 14:02:35 -07:00

14 lines
253 B
Haskell

module Main where
import Expr
import Parser
import System.IO
main :: IO ()
main = do
_ <- putStr "> "
_ <- hFlush stdout
input <- getLine
case pAll input of
Left err -> putStrLn err
Right expr -> putStrLn $ pretty expr