PArrows-0.1: Arrow parser combinators similar to ParsecSource codeContentsIndex
Text.ParserCombinators.PArrow.Combinator
Synopsis
empty :: MD i o
many :: MD i o -> MD i [o]
many1 :: MD i o -> MD i [o]
notFollowedBy :: MD i o -> MD i o
sepBy1 :: MD i o -> MD i o' -> MD i [o]
count :: Int -> MD i o -> MD i [o]
between :: MD i t -> MD t close -> MD t o -> MD i o
optional :: MD i o -> MD i (Maybe o)
(>>!) :: Arrow a => a b c -> a b c' -> a b c
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.
Produced by Haddock version 2.3.0