regex-0.12.0.0: Toolkit for regex-base
Text.RE.ZeInternals.Lex
Synopsis
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
alex
matchOnce