|
Proto : |
Subject: Re: [proto] Visitor Design Pattern
From: Eric Niebler (eric_at_[hidden])
Date: 2010-10-25 20:57:22
On 10/25/2010 5:44 PM, Eric Niebler wrote:
> struct my_grammar
> : proto::or_<
> proto::when< int_terminal, proto::external >
> , proto::when< char_terminal, proto::external >
> , proto::when<
> proto::plus< my_grammar, my_grammar >
> , proto::fold< _, int(), my_grammar >
> >
> >
> {};
>
> struct my_actions
> : proto::action_map<
> proto::when<int_terminal, print(proto::_value)>
> , proto::when<char_terminal, print(proto::_value)>
> >
> {};
s/proto::external/proto::external_transform/
s/proto::action_map/proto::external_transforms/
There, that's better. I don't think I'll mess with it any more. Go ahead
and use it, Thomas.
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Proto list run by eric at boostpro.com