Boost logo

Boost Users :

Subject: Re: [Boost-users] Can Regex callback function arguments be modified?
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-09-20 15:36:13


On Sun, Sep 20, 2009 at 8:53 AM, Ramon F Herrera <ramon_at_[hidden]> wrote:
>
>
> Great! This certainly helps.
>
> Thanks a lot, John.
>
> -Ramon
>
>
> John Maddock wrote:
>>>
>>> My data is structured like this:
>>>
>>> [Unique ID1]
>>> Variable Name = Variable Value
>>> Variable Name = Variable Value
>>> Variable Name = Variable Value
>>>
>>> [Unique ID2]
>>> Variable Name = Variable Value
>>> Variable Name = Variable Value
>>> Variable Name = Variable Value
>>> Variable Name = Variable Value
>>>
>>> All I need to do is to extract the different parts, to be saved in a
>>> map. In my first callback, I divide every section into (a) Unique ID,
>>> and (b) rest of the (multiline) block. Once I have the latter, I make a
>>> call to a second callback to break the LHS and the RHS of each
>>> assignment expression.

As I stated elsewhere, Boost.Spirit2.1 could still do it all in one
quick step, quite literally one line of code (although might spread
the grammar to two lines to make it more readable), no for loops or
anything needed, and it would do it a great deal faster.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net