« Return to Thread: Parsing progressively...

Re: Parsing progressively...

by Lucas Thode :: Rate this Message:

Reply to Author | View in Thread



On Thu, Jul 9, 2009 at 9:42 AM, Hartmut Kaiser <hartmut.kaiser@...> wrote:
> On Thu, Jul 9, 2009 at 6:18 AM, Commander Pirx <CmdPirx@...>
> wrote:
> <<quote snipped>>
>
> If Spirit could store it's internal state, it would be great. The
> biggest would be, to accept boost::asio::tcp::iostream as parser input.
>
> Cmd. Pirx


> Actually, you can accept boost::asio::tcp::iostream as parser input by
> constructing an istream_iterator from it and then wrapping that
> istream_iterator in a multi_pass.

FWIW, using istream_iterator should be sufficient. There is no need to
additionally wrap it in a multi_pass.

Regards Hartmut
I take it that Spirit2.x can use input iterators?

--Lucas


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

 « Return to Thread: Parsing progressively...