regex-genex-0.3.0: From a regex, generate all possible strings it can match

Regex.Genex

Synopsis

Documentation

data Model Source

A match consists of a string (list of codepoints), and a rank representing alternation order.

Constructors

Model 

Fields

modelChars :: [Word8]
 
modelRank :: Word64
 

Instances

genex :: [String] -> IO [String]Source

Given a list of regular repressions, returns all possible strings that matches every one of them. Guarantees to return shorter strings before longer ones.

genexPure :: [String] -> [String]Source

A pure and much faster variant of genex, but without support for back-references, anchors or word boundaries. Does not guarantee orders about length of strings. Does not depend on the external yices SMT solver.

genexPrint :: [String] -> IO ()Source

Same as genexModels, but print the models to standard output instead.

genexModels :: [String] -> IO [Model]Source

Same as genex, but with the entire model returned instead.