Boost logo

Boost Users :

From: HartmutKaiser_at_[hidden]
Date: 2003-06-21 07:30:30


Dan Nuffer wrote:

> Hi, I'm trying to write a grammar for a scripting language,
> and to do this I'm building an AST of each expression. I
> have this working fine, for the most part, but I've run into
> 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;

There were some discussions on this topic on this list a while ago.
I'm not sure though, what was the result of this discussion, I think, we
wanted to add some new directives for that, but do not remember, if this
was done.

May be you try to search the archives to find the answer? Meanwhile I'll
forward this message to the Spirit mailing list, maybe somebody remebers
it. Giovanni?

Regards Hartmut


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