trifecta-0.49.1: A modern parser combinator library with convenient diagnostics

Portabilitynon-portable
Stabilityexperimental
Maintainerekmett@gmail.com

Text.Trifecta.Parser.Prim

Description

 

Documentation

data Parser r e a Source

Constructors

Parser 

Fields

unparser :: (a -> ErrState e -> ErrLog e -> Bool -> Delta -> ByteString -> It Rope r) -> (ErrState e -> ErrLog e -> Bool -> Delta -> ByteString -> It Rope r) -> (a -> ErrState e -> ErrLog e -> Bool -> Delta -> ByteString -> It Rope r) -> (ErrState e -> ErrLog e -> Bool -> Delta -> ByteString -> It Rope r) -> ErrLog e -> Bool -> Delta -> ByteString -> It Rope r
 

Instances

why :: Pretty e => (e -> Doc t) -> ErrState e -> Highlights -> Bool -> Delta -> ByteString -> Diagnostic (Doc t)Source

stepParser :: (Diagnostic e -> Diagnostic t) -> (ErrState e -> Highlights -> Bool -> Delta -> ByteString -> Diagnostic t) -> (forall r. Parser r e a) -> ErrLog e -> Bool -> Delta -> ByteString -> Step t aSource

parseTest :: Show a => (forall r. Parser r String a) -> String -> IO ()Source

manyAccum :: (a -> [a] -> [a]) -> Parser r e a -> Parser r e [a]Source