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();

Thus:

     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
soon.

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

     https://lists.sourceforge.net/lists/listinfo/spirit-general

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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