ubcc/app/Main.hs

11 lines
280 B
Haskell
Raw Normal View History

2024-12-30 08:44:51 +01:00
module Main (main) where
import qualified Text.Parsec as Parsec
import qualified Ubc.Parse.Syntax.File as File
2024-12-30 08:44:51 +01:00
main :: IO ()
main = do
text <- getContents
-- fixme: handle errors?
2025-02-13 23:39:17 +01:00
print $ Parsec.parse (File.parse "<stdin>" <* Parsec.eof) "<stdin>" text