Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-05-22 13:27:34

----- Original Message -----
From: "joel de guzman" <joel_at_[hidden]>

> You have a point though with the + op. Right now Spirit
> uses the prefix + (for one or more), the prefix * (for zero
> or more). Infix + for sequencing? Hmmm... Well C++ uses
> the infix plus for mult and the prefix for deref.
> Comments?

Only that sequencing is the most common operation, so it should have the
simplest syntax. Since we can't get by with no syntax at all, I don't mind

repeat<0>(a) meanting a*
repeat<1>(a) meaning a+
repeat<3,5>(a) meaning aaa | aaaa | aaaaa


Boost list run by bdawes at, gregod at, cpdaniel at, john at