[antlr-interest] Rewrite Problem; Rule terminates without exception.

Terence Parr parrt at cs.usfca.edu
Sun Mar 16 09:15:44 PDT 2008


On Mar 16, 2008, at 6:57 AM, Michael Ernst wrote:

> Hi,
>
> I could solve the problem by using syntactic prdicates, but there  
> is still a
> problem. When I rewrite the tree and referencing the label twice, I  
> get no
> tree duplicate attached to the tree. I thought I could duplicate  
> nodes and
> trees by referencing them more than one time in a rewrite rule  
> (Chapter 7;
> Duplicating Nodes and Trees (sample: dump : INT -> INT INT ;)).

Hi Michael,

That should work; either something else is going on or it's a bug;  
can you narrow it down to a simple rule like that that doesnt' work?
Ter


More information about the antlr-interest mailing list