Boost logo

Boost Users :

From: HartmutKaiser_at_[hidden]
Date: 2003-06-22 03:25:39


-----Original Message-----
From: Giovanni Bajo [mailto:giovannibajo_at_[hidden]]
Sent: Sunday, June 22, 2003 1:39 AM
To: Hartmut Kaiser
Subject: Fw: [Spirit-general] RE: [Boost-Users] boost::spirit and asts

You may want to forward this to boost-users, the mail bounced because
I'm not subscribed to it.

Giovanni Bajo

Giovanni Bajo <giovannibajo_at_[hidden]> wrote:
> Hartmut Kaiser <hartmutkaiser_at_[hidden]> wrote:
>
>
>>> [AST]
>>> a problem -- I can't seem to figure out how to put right-to-left
>>> associative operators into the tree properly. I had this as a guess,

>>> but I'm really not sure: r = value | value >> root_node_d[ch_p('=')]

>>> >> r;
>
>> Meanwhile I'll
>> forward this message to the Spirit mailing list, maybe somebody
>> remebers it. Giovanni?
>
>
> The proposed code should work as expected wrt tree generation, but you
need
> to left-factor it to make it actually work:
>
> r = value >> !(root_node_d[ch_p('=')] >> r);
>
> Giovanni Bajo
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting
> Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> Commission! INetU Dedicated Managed Hosting
> http://www.inetu.net/partner/index.php
> _______________________________________________
> Spirit-general mailing list
> Spirit-general_at_[hidden]
> https://lists.sourceforge.net/lists/listinfo/spirit-general


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