PArrows-0.1.1: Arrow parser combinators similar to Parsec

Text.ParserCombinators.PArrow.Combinator

Synopsis

Documentation

empty :: MD i oSource

Match the empty string.

many :: MD i o -> MD i [o]Source

Match zero or more occurences of the given parser.

many1 :: MD i o -> MD i [o]Source

Match one or more occurences of the given parser.

notFollowedBy :: MD i o -> MD i oSource

Match if the given parser does not match.

sepBy1 :: MD i o -> MD i o' -> MD i [o]Source

Match one or more occurences of the given parser separated by the sepator.

count :: Int -> MD i o -> MD i [o]Source

Match the given parser n times.

between :: MD i t -> MD t close -> MD t o -> MD i oSource

Match the first, middle and last argument, returning the value from the middle one.

optional :: MD i o -> MD i (Maybe o)Source

Match optionally.

(>>!) :: Arrow a => a b c -> a b c' -> a b cSource

Sequence two parsers and return the result of the first one.