sebfisch / haskell-regexp

Regular Expression Matching in Haskell
http://sebfisch.github.com/haskell-regexp/
Other
34 stars 5 forks source link

character classes and special symbols #2

Closed sebfisch closed 14 years ago

sebfisch commented 14 years ago

Extend the parser such that groups of symbols written as [sebf], [h-k], [^abc], and [^h-k] as well as special symbols such as . or \d can be used in regular expressions.

To do so, change of the RegExp data type. The Symbol constructor should take a predicate :: a -> Bool rather than a symbol :: a.

sebfisch commented 14 years ago

implemented (55a292d2af22fd492f7ccbe978eb85336778e181).