Module
Text.Parsing.StringParser.Combinators
- Package
- purescript-string-parsers
- Repository
- paf31/purescript-string-parsers
This module defines combinators for building string parsers.
#(<?>) Source
Operator alias for Text.Parsing.StringParser.Combinators.withError (left-associative / precedence 3)
#optionMaybe Source
optionMaybe :: forall a. Parser a -> Parser (Maybe a)
Attempt to parse a value, pureing Nothing
in case of failure.
#sepBy1 Source
sepBy1 :: forall sep a. Parser a -> Parser sep -> Parser (NonEmptyList a)
Parse one or more separated values.
#sepEndBy1 Source
sepEndBy1 :: forall sep a. Parser a -> Parser sep -> Parser (NonEmptyList a)
Parse one or more separated values, optionally ending with a separator.
#endBy1 Source
endBy1 :: forall sep a. Parser a -> Parser sep -> Parser (NonEmptyList a)
Parse one or more separated values, ending with a separator.
#many1Till Source
many1Till :: forall end a. Parser a -> Parser end -> Parser (NonEmptyList a)
Parse values until the terminator matches, requiring at least one match.