Stability | experimental |
---|---|
Maintainer | Sebastian Fischer <mailto:sebf@informatik.uni-kiel.de> |
This module implements longest matching based on weighted regular expressions. It should be imported qualified as the interface resembles that provided by other matching modules.
Documentation
Semiring used for longest matching.
A Matching
records the leftmost start index of a matching subword.
Matching | |
|
matching :: RegExp c -> [c] -> Maybe MatchingSource
Returns the longest of all matchings for a regular expression in a given word.
getLongest :: Longest -> Maybe MatchingSource