papillon-0.0.58: packrat parser

Safe HaskellNone

Text.PapillonCore

Contents

Synopsis

For Text.Papillon library

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

For papillon command

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

Sequential application.