Boost logo

Boost :

Subject: Re: [boost] Parsing commands with Spirit
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-02-02 10:58:09


On Tue, Feb 2, 2010 at 8:49 AM, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
>   "command1/" >> +(alpha_p | '/') >> '/' >> +alpha_p >> eol_p

This would do the same thing, but execute faster:
    "command1/" >> (alpha % '/') >> eol


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk