>> More detail:
>> I am storing data from the network in a boost::array and I have written
>> a forward iterator to decode via dereferencing each utf8 byte sequence
>> into its unicode code point. Should I build up the passed content into
>> another buffer so that spirit could parse from "<"....">" or could I
>> pass the original boost array that will contain the "<" and then later
>> another parse call to get the ">" in the next iteration of the network
>> loop. Will spirit then recognize the start tag over the buffer break?
>>
>> (does spirit keep its own buffer to track the parse with its state
>> machine?)
>
> This is not possible as Spirits recursive descent parser framework stores
> the current parser state on the (hardware-) stack. In order to do the
> context switch in between two parse steps you need to use some co-routine
> library. But this is non-trivial and requires some changes to Spirit itself.
>
Thank you.
Could a feature request be made so that the Spirit Framework could be
used to parse content sent over a network connection?
Would the rest of the community find such a feature useful?
Kind Regards,
Etienne
------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general