paripari-0.7.0.0: Parser combinators with fast-path and slower fallback for error reporting

Safe HaskellNone
LanguageHaskell2010

Text.PariPari.Internal.Run

Synopsis

Documentation

runParser :: Chunk k => (forall p. Parser k p => p a) -> FilePath -> k -> (Maybe a, [Report]) Source #

Rsun fast Acceptor and slower Reporter on the given sequentially. The FilePath is used for error reporting. When the acceptor does not return successfully, the result from the reporter is awaited.

runParserWithOptions :: Chunk k => ReportOptions -> (forall p. Parser k p => p a) -> FilePath -> k -> (Maybe a, [Report]) Source #

Run parsers **sequentially** with additional ReportOptions.