applicative-parsec-0.1.0.0: An applicative parser combinator library

Safe HaskellNone
LanguageHaskell2010

Text.Parsec.Applicative

Documentation

data Parser s tt td a Source

Instances

Alternative (Parser s tt td) 
Functor (Parser s tt td) 
Applicative (Parser s tt td) 
(Show s, Show tt, Show td) => Show (Parser s tt td a) 

eof :: Parser s tt td () Source

token :: Eq tt => tt -> Parser s tt td (tt, td) Source

try :: Parser s tt td a -> Parser s tt td a Source

label :: s -> Parser s tt td a -> Parser s tt td a Source

parse :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> Either ParseError a Source

parse' :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> (Either ParseError a, [(tt, td)]) Source

accept :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> Bool infix 4 Source

accept' :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> Maybe ParseError infix 4 Source

between :: Applicative f => f a -> f b -> f c -> f c Source

choice :: Alternative f => [f a] -> f a Source

option :: Alternative f => a -> f a -> f a Source

sepBy :: Alternative f => f a -> f b -> f [a] Source