
15 Oct
2005
15 Oct
'05
6:06 p.m.
Hello Conor, Saturday, October 15, 2005, 4:47:02 PM, you wrote:
Now lets consider using an algebraic datatype for regexps:
data RegExp = Empty | Single Char | RegExp :+: RegExp | RegExp :|: RegExpt | Iter RegExp
btw, a year ago i written RE processing library, which used Parsec both to parse and compile regexpr itself and to parse input string according to compiled regexpr. i think, this have no practical meaning, but may be included in parsec library as intersting example of its usage :) unluckily, i dont debugged it and so don't send it to parsec author -- Best regards, Bulat mailto:bulatz@HotPOP.com