pire-0.2.5

Copyright(c) Andreas Reuleaux 2015 - 2018
LicenseBSD2
MaintainerAndreas Reuleaux <rx@a-rx.info>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Parser_

Description

white space aware parser: ported to Pire from Pi-forall (adapted to Trifecta from Parsec), and augemented with white space aware parsing

Synopsis

Documentation

reservedOp_ :: (TokParsing m, DeltaParsing m) => String -> m (TT Text Text) Source #

>>> fromSuccess $ parseString (runInnerParser $ evalStateT (whiteSpace *> reservedOp_ "wow") piPrelude) beginning "  wow{-foo-}this rocks "
Ws "{-foo-}"

parens_ :: DeltaParsing m => m t -> m (TT Text Text, t, TT Text Text) Source #

braces_ :: DeltaParsing m => m (a, [TT Text Text]) -> m (a, [TT Text Text]) Source #

sepBy_ :: (Alternative m, Monad m) => m (a, tt) -> m tt -> m ([a], [tt]) Source #

sepBy1_ :: (Alternative m, Monad m) => m (a, tt) -> m tt -> m ([a], [tt]) Source #

sepByNonEmpty_ :: (Alternative m, Monad m) => m (a, tt) -> m tt -> m (NonEmpty a, [tt]) Source #