|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-05-30 08:31:50
From: joel de guzman <isis-tech_at_[hidden]>
>
> I posted the initial release of Spirit with iterators as
> proposed here. The Kleene star (*, zero or more)
> and the positive operator (+, one or more) remain
> as is. In addition, the new iterator syntax generalizes
> repetitions. We have:
>
> a.Repeat(8); // repeat a 8 times
> a.Repeat(8, 20); // repeat a 8 to 20 times
> a.Repeat(8, more); // repeat a 8 or more times
>
> And shorthands:
>
> a(8); // repeat a 8 times
> a(8, 20); // repeat a 8 to 20 times
> a(8, more); // repeat a 8 or more times
This is just a vague feeling, but I wonder if using this
shorthand for repetition might not foreclose some more
interesting future use of operator() ?
> The documentation will be updated to reflect this additions.
> Rule<> toDo = (code >> document)(1, more);
>
> as usual: http://isis-tech.n3.net/
>
> Cheers,
> Joel de Guzman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk