kangaroo-0.1.0: Random access binary combinator parser.

Portabilityto be determined.
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Data.ParserCombinators.KangarooRWS

Description

Kangaroo parse monad with user env, logging and state.

Documentation

type Kangaroo r w st a = GenKangaroo (r, w, st) aSource

parse :: Monoid w => Kangaroo r w st a -> r -> st -> FilePath -> IO (Either ParseErr a)Source

runKangaroo :: Monoid w => Kangaroo r w st a -> r -> st -> FilePath -> IO (Either ParseErr a, w, st)Source

evalKangaroo :: Monoid w => Kangaroo r w st a -> r -> st -> FilePath -> IO (Either ParseErr a, w)Source

execKangaroo :: Monoid w => Kangaroo r w st a -> r -> st -> FilePath -> IO stSource

put :: st -> Kangaroo r w st ()Source

get :: Kangaroo r w st stSource

modify :: (st -> st) -> Kangaroo r w st ()Source

gets :: (st -> a) -> Kangaroo r w st aSource

tell :: Monoid w => w -> Kangaroo r w st ()Source

ask :: Kangaroo r w st rSource