Boost logo

Proto :

Subject: Re: [proto] Using Phoenix inside eUML: mixing grammars
From: Michael Caisse (boost_at_[hidden])
Date: 2011-05-02 02:39:28


On 05/01/2011 10:32 PM, Thomas Heller wrote:
> On Monday, April 25, 2011 06:39:14 PM Christophe Henry wrote:
>
>> Anyway, I am hoping not to write any cool transform but simply save
>> the type of the phoenix expression so that I can re-create an actor
>> later. If I need to rewrite differently what BuildGuards was doing, I
>> gain little. I would like phoenix to do the grammar parsing and
>> building of actor.
>>
> It does ... just pass on proto::_right and it should be good:
>
> struct BuildEventPlusGuard
> : proto::when<
> proto::subscript<
> proto::terminal<event_tag>
> , phoenix::meta_grammar // match the phoenix actor
> >
> , TempRow<
> none
> , proto::_left
> , none
> , none
> , proto::_right // Pass the type along. which is a phoenix actor.
> >(proto::_right) // Pass the object along. Which is the actor (1)
> >
> {};
>
> (1): Here you can work around the thing with the possibly uninitialized stuff.
> Just copy the phoenix actor (should be cheap, if not optimized away completely).
>
>
>> Thanks,
>> Christophe
>>
> _______________________________________________
>

Not that you guys need it... but just consider me on the sidelines
cheering you on. I've been spending a lot of time lately with MSM and
would *love* too see some Phoenix 3 support in it!

michael

-- 
In the Sacramento/Folsom area?
** Profesional C++ Training mid-May **
http://www.objectmodelingdesigns.com/boostcon_deal.html
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

Proto list run by eric at boostpro.com