regex-genex-0.6.0: From a regex, generate all possible strings it can match
From a regex, generate all possible strings it can match 5 |
Modules
├── .gitignore ├── binaries └── osx │ └── genex ├── dist └── doc │ └── html │ └── regex-genex │ ├── plus.gif │ ├── minus.gif │ ├── hslogo-16.png │ ├── synopsis.png │ ├── regex-genex.haddock │ ├── index-frames.html │ ├── frames.html │ ├── mini_Regex-Genex.html │ ├── index.html │ ├── doc-index.html │ ├── haddock-util.js │ ├── ocean.css │ └── Regex-Genex.html ├── Setup.lhs ├── Makefile ├── Main.hs ├── regex-genex.cabal ├── src └── Regex │ ├── Genex │ ├── Pure.hs │ └── Normalize.hs │ └── Genex.hs ├── README └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | binaries/osx/yices 2 | dist 3 | .*~ 4 | tags 5 | -------------------------------------------------------------------------------- /binaries/osx/genex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/binaries/osx/genex -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/dist/doc/html/regex-genex/plus.gif -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/dist/doc/html/regex-genex/minus.gif -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/hslogo-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/dist/doc/html/regex-genex/hslogo-16.png -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/synopsis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/dist/doc/html/regex-genex/synopsis.png -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/regex-genex.haddock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/audreyt/regex-genex/HEAD/dist/doc/html/regex-genex/regex-genex.haddock -------------------------------------------------------------------------------- /Setup.lhs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env runghc 2 | > import Distribution.Simple 3 | > import System.Cmd (rawSystem) 4 | > 5 | > main :: IO () 6 | > main = defaultMainWithHooks simpleUserHooks 7 | -------------------------------------------------------------------------------- /dist/doc/html/regex-genex/index-frames.html: -------------------------------------------------------------------------------- 1 |
Regex.Genex
regex-genex-0.6.0: From a regex, generate all possible strings it can match
From a regex, generate all possible strings it can match 5 |
Modules
regex-genex-0.6.0: From a regex, generate all possible strings it can match
Index
| genex | Regex.Genex |
| genexModels | Regex.Genex |
| genexPrint | Regex.Genex |
| genexPure | Regex.Genex |
| genexWith | Regex.Genex |
| Model | |
| 1 (Type/Class) | Regex.Genex |
| 2 (Data Constructor) | Regex.Genex |
| modelChars | Regex.Genex |
| modelRank | Regex.Genex |
| normalize | Regex.Genex.Normalize |
| regexMatch | Regex.Genex |
regex-genex-0.6.0: From a regex, generate all possible strings it can match
| Safe Haskell | Safe-Infered |
|---|
Regex.Genex
Description
This module and the accompanying genex program finds all permutations
5 | of strings that matches every input regular expressions, ordered from
6 | shortest to longest, with full support for back references ('\1' .. '\9')
7 | and word boundaries ('\b').
8 |
It requires the yices binary in PATH; please download it from:
9 | http://yices.csl.sri.com/download-yices2.shtml
10 |
data Model
A match consists of a string (list of codepoints), and a rank representing alternation order. 11 |
Constructors
| Model | |
Fields
| |
genex :: [String] -> IO [String]
Given a list of regular repressions, returns all possible strings that matches every one of them. 12 | Guarantees to return shorter strings before longer ones. 13 |
genexPure :: [String] -> [String]
A pure and much faster variant of genex, but without support for
14 | back-references, anchors or word boundaries.
15 | Does not guarantee orders about length of strings.
16 | Does not depend on the external yices SMT solver.
17 |
genexPrint :: [String] -> IO ()
Same as genexModels, but print the models to standard output instead.
18 |
genexModels :: [String] -> IO [Model]
Same as genex, but with the entire model returned instead.
19 |
genexWith :: ([maxRepeat :: Int], Monoid a) => ([SatResult] -> Hits -> (Hits -> IO a) -> IO a) -> [[Char]] -> IO a
regexMatch :: [maxRepeat :: Int] => [[Char]] -> Str -> Symbolic SBool