Boost logo

Boost Users :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2008-08-04 10:27:15


> 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 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