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

Gavin Lambert antlr at mirality.co.nz
Mon Feb 16 23:25:24 PST 2009


At 10:31 17/02/2009, Carter Cheng wrote:
 >
 >Thanks Jim. What I am doing in the mean time is just replicating 
my
 >entire tree grammar for each of the two passes. I suspect given 
my
 >file sizes are not large this should not be a problem.

I haven't tested this, but I believe you can manually construct an 
"ignore" rule thusly (until the new . changes come through):

ignore
   : .
   | ^(. ignore*)
   ;



More information about the antlr-interest mailing list