Webrexp-1.1.2: Regexp-like engine to scrap web data

Safe HaskellNone

Text.Webrexp.Eval

Contents

Synopsis

Functions

evalAction :: (GraphWalker node rezPath, IOMockable (WebContextT array node rezPath m), Functor m, Monad m) => ActionExpr -> Maybe (EvalState node rezPath) -> WebContextT array node rezPath m (ActionValue, Maybe (EvalState node rezPath))Source

Evaluate embedded action in WebRexp

evalWebRexpFor :: (GraphWalker node rezPath, IOMockable (WebContextT array node rezPath m), Functor m, MArray array (Set String) m) => WebRexp -> EvalState node rezPath -> WebContextT array node rezPath m (Bool, [EvalState node rezPath])Source

Evaluate the leaf nodes of a webrexp, this way the code can be shared between the Breadth first evaluator and the Depth first one.