Subject: Re: [boost] template-defined regexp proposal
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-01-31 06:40:03
On 31/01/2011 00:30, Vit Stepanek wrote:
> I've implemented the basic regexp functionality using few simple
> template classes. Any regexp can be created by inserting the template
> classes one into another in the required order.
> Although it's in the design state, I'd like to find out if there's any
> interest in providing this functionality.
> Let me present you some short introduction to the topic.
> Some basic classes include
> - String Match (full string matching)
> - Is-in Match (matches any character in the list)
> - Or Match
> - Quantity
> and so on.
> These are the "building blocks" of the regexp. Each class does a very
> little bit but when combined in the specific order, you gain a clearly
> defined string matching algorithm of any kind and any complexity.
> In addition, it's quite simple to add any missing functionality. You
> just need to define you're desired algorithm and mix it with the others.
How is that significantly different from what spirit or xpressive do?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk