ubcc/src/Ubc/Parse.hs

16 lines
438 B
Haskell
Raw Normal View History

module Ubc.Parse
( parseScript )
2024-12-30 08:44:51 +01:00
where
import Text.Parsec ( runPT, ParseError, SourceName, ParsecT )
import qualified Ubc.Parse.Syntax.ParserState as ParserState
import qualified Ubc.Parse.Syntax.Config as Config
parseScript :: Monad m => SourceName -> String -> m (Either ParseError ())
parseScript = runPT topLevelParser (ParserState.initialState Config.defaultConfig)
topLevelParser :: ParsecT s u m ()
topLevelParser = return ()