|
Boost Users : |
Subject: Re: [Boost-users] [proto] Question on grammar
From: Manjunath Kudlur (keveman_at_[hidden])
Date: 2010-01-27 11:24:36
Eric,
I did find some threads mentioning this in the archives. However, I
had already written my code before I saw this, and I will feel better
if I understand what's going wrong in my code. Could you please take a
quick look?
Thanks,
Manjunath
On Tue, Jan 26, 2010 at 10:45 PM, Eric Niebler <eric_at_[hidden]> wrote:
> Hi Manjunath, in the future please put the name of the library you're asking
> about in the subject as I have done.
>
> On 1/27/2010 2:31 PM, Manjunath Kudlur wrote:
>>
>> I am sure this has been asked before, but I am not able to find an
>> answer to my specific question in the archives. I wanted to create a
>> grammar that can accept statements like if_(expr)[ statement-list
>> ].else_[statement-list].
>
> <snip>
>
> Proto has experimental (undocumented) support for data members like .else_
> in the above expression. Have a look at
> libs/proto/example/virtual_member.cpp, which does pretty much exactly what
> you're trying to do above.
>
> HTH,
>
> --
> Eric Niebler
> BoostPro Computing
> http://www.boostpro.com
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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