kangaroo-0.1.0: Random access binary combinator parser.

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

Data.ParserCombinators.Kangaroo.ParseMonad

Contents

Description

Random access parse monad

Synopsis

Documentation

modifySt :: (St -> St) -> GenKangaroo ust ()Source

modifyUserSt :: (ust -> ust) -> GenKangaroo ust ()Source

Parse within a region.

dalpunto :: Int -> Int -> GenKangaroo ust a -> GenKangaroo ust aSource

return to the start position - start x length

dalpuntoRelative :: Int -> Int -> GenKangaroo ust a -> GenKangaroo ust aSource

return to the start position - displacement x length

advanceDalpunto :: Int -> GenKangaroo ust p -> GenKangaroo ust pSource

Advance the current position by the supplied distance.

advanceDalpuntoAbsolute :: Int -> GenKangaroo ust p -> GenKangaroo ust pSource

Advance the current position to the supplied (absolute) position.

alfine :: Int -> Int -> GenKangaroo ust a -> GenKangaroo ust aSource

alfine - parse to the end

alfineRelative :: Int -> Int -> GenKangaroo ust a -> GenKangaroo ust aSource

finish at the right of the region - displacement x length

alfermata :: Int -> Int -> GenKangaroo ust a -> GenKangaroo ust aSource

alfermata - parse to the sign i.e. wherever the supplied parser stops within the supplied region. At the end of the parse restore the outer region.

advanceAlfermata :: Int -> GenKangaroo ust p -> GenKangaroo ust pSource

Advance the current position by the supplied distance.

advanceAlfermataAbsolute :: Int -> GenKangaroo ust p -> GenKangaroo ust pSource

Advance the current position to the supplied (absolute) position.