[antlr-interest] Whats the diff between 'protected' and 'Token.SKIP'

Prashant Deva prashant.deva at gmail.com
Thu Mar 17 20:44:09 PST 2005


Whats the diff between marking a token as 'SKIP' and marking it as 'protected'.
Eg- 
Whats the diff between the 2 rules - 
WS   : ('\t' | '\r' | ' ') {_ttype=Token.SKIP;} ;

protected WS   : ('\t' | '\r' | ' ') ;

PRASHANT


More information about the antlr-interest mailing list