Nov ’09 20

Several people have been asking the question of how it would be possible to access the current iterator position from a semantic action. Different solutions have been proposed, all of them somehow abusing the predefined Qi directive raw[] which normally exposes as its attribute the pair of iterators pointing to the range in the input stream matched by the embedded parser. I thought this to be a nice incentive to write about how you can create your own parser components.

See full article here.

GD Star Rating
loading...
Creating Your Own Parser Component for Spirit.Qi, 5.0 out of 5 based on 1 rating

Comments are closed.

preload preload preload