Boost logo

Boost Users :

Subject: Re: [Boost-users] [spirit2] Trivial parser crashes
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-11-18 04:39:33

Joel de Guzman wrote:
> sm4 wrote:
>> Oops - seems formatting got in the way.
>> Hope this is better:
> Ooops, I missed your reply. Its better to post spirit
> related questions to spirit's mailing list. I'm re-posting
> this there.

Ok, this looks like a bug in handling aliases of the form:

     r1 %= r2;

where r1 and r2 are rules with the same type. A quick
workaround is to copy the rhs rule:

     r1 %= r2.copy();


     key %= quoted_string.copy();
     value %= quoted_string.copy();

Take note that this is not a problem with Spirit2x I am working
on right now which should replace the current version hopefully

I'll get back to you for a quick fix. Anyway, in case you don't
know, here's spirit's mailing list:


Joel de Guzman

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at