MM
struct, derived struct, fusion-adapted and the sequence operator –
Hi,
I have a base struct { type1 f1; type2 f2; } adapted as a fusion sequence.
A rule to parse this struct is straight forward (like th...
Loading...
sehe
On 01/04/2012 12:14 AM, MM wrote:
> Is there a way to get there?
Yeah sure, just avoid 'casting' (assigning using the fusion adaptation)
to ...
Loading...
sehe
On 01/04/2012 12:36 AM, Seth Heeren wrote:
> On 01/04/2012 12:14 AM, MM wrote:
>> Is there a way to get there?
> Yeah sure, just av...
Loading...
MM
From: Seth Heeren [mailto:bugs@...]
Sent: 04 January 2012 00:31
To: Spirit General Mailing List
Subject: Re: [Spirit-general] struct, derived ...
Loading...
sehe
On 01/04/2012 01:13 PM, MM wrote:
> In fact, I don't really need a rule for base struct itself, it's just that
> base's fields are common ...
Loading...
sehe
On 01/04/2012 01:34 PM, Seth Heeren wrote:
> Precisely what the default synthesized attribute type looks like for
> your parser expression...
Loading...
MM
From: Seth Heeren [mailto:bugs@...]
Sent: 04 January 2012 12:34
To: Spirit General Mailing List
Subject: Re: [Spirit-general] struct, derived ...
Loading...
sehe
On 01/04/2012 02:08 PM, MM wrote:
> but then:
>
> the attribute of base_parser is fusion::vector<int,int>
> and that of int_...
Loading...
MM
From: Seth Heeren [mailto:bugs@...]
Sent: 04 January 2012 13:46
To: Spirit General Mailing List
Subject: Re: [Spirit-general] struct, derived ...
Loading...
sehe
On 01/04/2012 03:34 PM, MM wrote:
> Did I already say it's been suggested to add a flatten[] directive to
> spirit?
>
> I'll ask h...
Loading...
MM
-----Original Message-----
From: Seth Heeren [mailto:bugs@...]
Sent: 04 January 2012 15:22
To: Spirit General Mailing List
Subject: Re: [Spir...
Loading...
Joel de Guzman-2
On 1/4/2012 11:21 PM, Seth Heeren wrote:
> Conversely, we could hack a BOOST_FUSION_ADAPT_DERIVED_STRUCT that takes
> care of some of th...