regex-0.8.0.0: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.Tools.Lex

Contents

Synopsis

Documentation

alex :: IsRegex re s => [(re, Match s -> Maybe t)] -> t -> s -> [t] Source #

a simple regex-based scanner interpretter for prototyping scanners

alex' :: Replace s => (re -> s -> Match s) -> [(re, Match s -> Maybe t)] -> t -> s -> [t] Source #

a higher order version of alex parameterised over the matchOnce function

IsRegex

class Replace s => IsRegex re s where Source #

Minimal complete definition

matchOnce, matchMany, makeRegex, makeRegexWith, regexSource

Methods

matchOnce :: re -> s -> Match s Source #

matchMany :: re -> s -> Matches s Source #

makeRegex :: (Functor m, Monad m) => s -> m re Source #

makeRegexWith :: (Functor m, Monad m) => SimpleRegexOptions -> s -> m re Source #

regexSource :: re -> s Source #

Text.RE

module Text.RE