[antlr-interest] ANTLR v3 Syntax Questions: !, [squareBrackets]; Tree Building

Steve Lianoglou lists.steve at arachnedesign.net
Mon Nov 20 09:21:10 PST 2006


> What do the trailing exclamation points mean?

If it's anything like the v2 syntax, they're used to tell the parser  
to "toss them" after they are scanned.

As in, they're not needed for the next step (building/walking the AST 
(?))

I guess it's the same as v2 since these exclamation points are tacked  
onto the ';' token.

HTH,
-steve


More information about the antlr-interest mailing list