parsec-2.1.0.1: Monadic parser combinators

Portabilityportable
Stabilityprovisional
Maintainerdaan@cs.uu.nl

Text.ParserCombinators.Parsec.Combinator

Description

Commonly used generic combinators

Documentation

choice :: [GenParser tok st a] -> GenParser tok st aSource

count :: Int -> GenParser tok st a -> GenParser tok st [a]Source

between :: GenParser tok st open -> GenParser tok st close -> GenParser tok st a -> GenParser tok st aSource

option :: a -> GenParser tok st a -> GenParser tok st aSource

optionMaybe :: GenParser tok st a -> GenParser tok st (Maybe a)Source

optional :: GenParser tok st a -> GenParser tok st ()Source

skipMany1 :: GenParser tok st a -> GenParser tok st ()Source

many1 :: GenParser tok st a -> GenParser tok st [a]Source

sepBy1, sepBy :: GenParser tok st a -> GenParser tok st sep -> GenParser tok st [a]Source

endBy1, endBy :: GenParser tok st a -> GenParser tok st sep -> GenParser tok st [a]Source

sepEndBy1, sepEndBy :: GenParser tok st a -> GenParser tok st sep -> GenParser tok st [a]Source

chainr, chainl :: GenParser tok st a -> GenParser tok st (a -> a -> a) -> a -> GenParser tok st aSource

chainr1, chainl1 :: GenParser tok st a -> GenParser tok st (a -> a -> a) -> GenParser tok st aSource

eof :: Show tok => GenParser tok st ()Source

notFollowedBy :: Show tok => GenParser tok st tok -> GenParser tok st ()Source

manyTill :: GenParser tok st a -> GenParser tok st end -> GenParser tok st [a]Source

lookAhead :: GenParser tok st a -> GenParser tok st aSource

anyToken :: Show tok => GenParser tok st tokSource