|
Boost : |
From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-05-30 06:16:20
Hi,
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
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