|
Boost : |
From: Reuben Fries (reuben_at_[hidden])
Date: 2001-05-22 08:57:11
----- Original Message -----
From: "joel de guzman" <joel_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, May 22, 2001 6:40 AM
Subject: Re: [boost] Re: [ANN] Spirit C++ parser framework
> 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?
>
> [ snip ]
>
> Joel de Guzman
>
I'm kind of ignorant on this topic... so I apologize if my suggestion is
actually invalid. Would it be possible to get rid of the * and + prefixes,
and add a range postfix?
You would do:
Rule<> a, b;
a = b(0,1) + a;
instead of a = b >> !a
negative values would be "infinity" so you would do
a = b(0,-1) + a
instead of a = b >> *a
and
a = b(1,-1) + a
instead of a = b >> +a
-Reuben
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk