4 Aug
2008
4 Aug
'08
2:27 p.m.
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