On Mar 11, 2010, at 9:56 AM, Gerald Rosenberg wrote:

> Given an actual AST structure of
> 
>         ^(ROOT ^(PACKAGE ^(PACKAGENAME ID+)))
> 
> this tree pattern rule works as expected
> 
>         package : ^(PACKAGE ^(PACKAGENAME id+=ID+)) ;
> 
> and this works
> 
>         package : PACKAGE ;

that would only work as start rule i think.

> 
> However, this rule does not
> 
>         package : PACKAGE ^(PACKAGENAME id+=ID+) ;
> 
> Seems that it generates code that expects a flat structure:

that is a flat structure :)

A B is flat A=PACKAGE B=^(...)

Ter


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to