[antlr-interest] illegal option output and ! operator

Gavin Lambert antlr at mirality.co.nz
Tue Dec 22 11:58:12 PST 2009


At 17:08 22/12/2009, testn wrote:
 >
 >It used to work in ANTLR 2, though....

Yes.  But it doesn't work in v3 because of the different way that 
token generation is handled (ANTLR v2 always copied the token 
text; to improve performance v3 doesn't).

There isn't really any particular reason why the functionality 
couldn't be re-implemented in v3 (and it'd be useful in quite a 
few cases), but that's still sitting on the wishlist.



More information about the antlr-interest mailing list