Module

Text.Parsing.Combinators

Package
purescript-parsers
Repository
mlang/purescript-parsers

#between Source

between :: forall m open close a. Apply m => m open -> m close -> m a -> m a

#chainl Source

chainl :: forall m a. Alternative m => m a -> m (a -> a -> a) -> a -> m a

#chainl1 Source

chainl1 :: forall m a. Alternative m => m a -> m (a -> a -> a) -> m a

#chainr Source

chainr :: forall m a. Alternative m => m a -> m (a -> a -> a) -> a -> m a

Parse phrases delimited by a right-associative operator.

#chainr1 Source

chainr1 :: forall m a. Alternative m => m a -> m (a -> a -> a) -> m a

Parse phrases delimited by a right-associative operator, requiring at least one match.

#either Source

either :: forall m a b. Alternative m => m a -> m b -> m (Either a b)

#oneOf Source

oneOf :: forall f m a. Foldable f => Alternative m => f (m a) -> m a

#option Source

option :: forall m a. Alternative m => a -> m a -> m a

#optional Source

optional :: forall m a. Alternative m => m a -> m Unit

#optionMaybe Source

optionMaybe :: forall m a. Alternative m => m a -> m (Maybe a)