perga/app/Main.hs

14 lines
213 B
Haskell
Raw Normal View History

2024-10-05 13:31:09 -07:00
module Main where
2024-10-05 16:04:13 -07:00
import Parser
import System.IO
2024-10-05 13:31:09 -07:00
main :: IO ()
2024-10-05 16:04:13 -07:00
main = do
_ <- putStr "> "
_ <- hFlush stdout
input <- getLine
case pAll input of
Left err -> putStrLn err
Right expr -> print expr