Boost logo

Boost Users :

From: Richard (legalize+jeeves_at_[hidden])
Date: 2008-04-01 15:13:07


[Please do not mail me a copy of your followup]

boost-users_at_[hidden] spake the secret code
<47F1F383.5060802_at_[hidden]> thusly:

>I'm trying to write a parser which can write on the input string (mainly
>insert string at the current position).

You're probably better off representing this as a transformation
instead of an edit-in-place.

>Does spirit contain any stuff that can help me in that way ?

AFAIK, Spirit doesn't contain any mechanisms for modifying the input
-- that's considered beyond the scope of a parser. You could probably
create your own out-of-band mechanism for doing it, but it would
probably mess up spirit's idea of where it is within the input as you
modified the input.

-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>
        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

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