[antlr-interest] Clarification on Attribute Reference in Actions
Kay Roepke
kroepke at classdump.org
Wed Jul 4 16:31:51 PDT 2007
On Jul 5, 2007, at 1:22 AM, Kay Roepke wrote:
> I think this is a bug in the actionparser
> code. It should warn you that $term.t will refer to the rule's
> return value and not the subtree
> reference's retval object.
Let me rephrase this:
I think it is a shortcoming in the ActionParser code. It should warn
you that $term.t will refer to the rule's return value if a subtree
of the same name is actually visible to the action.
"Bug" just sounded too harsh... ;)
cheers,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list