Safe Haskell | None |
---|---|
Language | GHC2021 |
Symparsec
Contents
Description
Top-level Symparsec module, exporting builtin parsers and runners.
I suggest importing this module qualified. Or, consider the following imports:
import Symparsec.Run qualified as Symparsec import Symparsec.Parsers qualified as P -- > :k! Symparsec.Run (P.Take 1) "hello"
Base definitions
type Run (p :: PParser a) (str :: Symbol) = RunEnd str (p @@ StateInit str) Source #
Run the given parser on the given Symbol
.
- On success, returns a tuple of
(result :: a, remaining ::
.Symbol
) - On failure, returns an
ErrorMessage
.
Parsers
module Symparsec.Parsers