Boost logo

Boost Users :

Subject: Re: [Boost-users] Can Regex callback function arguments be modified?
From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2009-09-19 16:14:23


Ramon F Herrera <ramon <at> patriot.net> writes:
> 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.

Definitely take a look at Boost.Xpressive and its semantic actions.
Its introductory example for semantic actions seems very similar to half
your problem and the rest you can probably figure out quite easily:

http://tinyurl.com/kl6dq9

HTH,

-Ryan


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