On Fri, Jul 3, 2009 at 11:48 PM, Hartmut Kaiser<
hartmut.kaiser@...> wrote:
> I think you're mixing two things here (see below).
[snip]
> 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.
Would it really need changes to spirit?
A non-match for something could generate a semantic action that would
call yield and later retry. This loop parser could be in a boolean
condition.
I think it is doable, though the logic would have to be all in the
parser, which could become too much burden.
> Regards Hartmut
--
Felipe Magno de Almeida
------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general