papillon-0.0.62: packrat parser

Safe HaskellNone

Text.Papillon

Contents

Synopsis

Documentation

class Source sl whereSource

Associated Types

type Token sl Source

data Pos sl Source

Methods

getToken :: sl -> Maybe (Token sl, sl)Source

initialPos :: Pos slSource

updatePos :: Token sl -> Pos sl -> Pos slSource

Instances

SourceList c => Source [c] 

class SourceList c whereSource

Associated Types

data ListPos c Source

Instances

For parse error message

data ParseError pos drv Source

Instances

Error (ParseError pos drv) 

mkParseError :: forall pos drv. String -> String -> String -> drv -> [String] -> pos -> ParseError pos drvSource

peDerivs :: ParseError pos drv -> drvSource

pePosition :: ParseError pos drv -> posSource

pePositionS :: forall drv. ParseError (Pos String) drv -> (Int, Int)Source

(<*>) :: Applicative f => forall a b. f (a -> b) -> f a -> f b

Sequential application.

(<$>) :: Functor f => (a -> b) -> f a -> f b

An infix synonym for fmap.

runError :: forall err a. ErrorT err Identity a -> Either err aSource