[antlr-interest] Skip subtree in tree grammar

Gavin Lambert antlr at mirality.co.nz
Wed May 6 14:06:24 PDT 2009


At 06:54 7/05/2009, Martijn Reuvers wrote:
 >Does the | .* option not say accept everything until the end of 
the
 >if statement, irrelevant of what it is?

In theory yes, but as I said earlier there's a quirk in older 
versions that makes it refuse to match subtrees properly.  You 
need to use the "skip" variant on those versions.  And IIRC "those 
versions" includes the latest release -- only the daily builds 
have been fixed up thus far.



More information about the antlr-interest mailing list