FW: [Spirit-general] RE: [Boost-Users] boost::spirit and asts
-----Original Message-----
From: Giovanni Bajo [mailto:giovannibajo@libero.it]
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
Hartmut Kaiser
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spirit-general
participants (1)
-
HartmutKaiser@t-online.de