Boost logo

Boost Users :

From: Marco Biasini (mbiasini_at_[hidden])
Date: 2008-08-04 11:53:26


Thanks! This works like a charm.

Best,
Marco

On Aug 4, 2008, at 4:27 PM, Hartmut Kaiser wrote:

>> I'm using boost spirit. I have a semantic action attached to a
>> real_p.
>> Is there a wy to get the current scanner position from this semantic
>> action? For all the generic semantic actions, I can use the
>> position_iterator, but since real_p only accepts functions/functors
>> with a float argument, I'm kind of lost.
>
> (real_p >> eps_p)[...]
>
> should give you the pair of iterators.
>
> FWIW, in Spirit2 we have the raw[] directive for that.
> Regards Hartmut
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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