ubcc/app/Main.hs

10 lines
280 B
Haskell

module Main (main) where
import qualified Text.Parsec as Parsec
import qualified Ubc.Parse.Syntax.File as File
main :: IO ()
main = do
text <- getContents
-- fixme: handle errors?
print $ Parsec.parse (File.parse "<stdin>" <* Parsec.eof) "<stdin>" text