[antlr-interest] subtrees which I don't care about and .*

Jim Idle jimi at temporal-wave.com
Sun Feb 15 19:30:28 PST 2009


Carter Cheng wrote:
> Hi,
>
> I was spending sometime with my tree grammar today and noticed that the .* rules dont seem to properly match/ignore subtrees and instead generate an error upon encountering DOWN. 
>
> If I am correct about this, what is the proper way of creating tree grammars where I am only interested in a subset of the rules in the generated tree? Is there some method for doing this using grammar inheritance?
>   
There are changes for this in the latest Java source that have yet to 
come in to the latest C source,so I suspect that you are running in to 
the need for those changes.

Jim


More information about the antlr-interest mailing list