[antlr-interest] Whats the diff between 'protected' and
'Token.SKIP'
Loring Craymer
Loring.G.Craymer at jpl.nasa.gov
Thu Mar 17 21:33:47 PST 2005
protected rules do not produce tokens--they must be called by public rules
which do produce tokens.
--Loring
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Prashant Deva
> Sent: Thursday, March 17, 2005 8:44 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Whats the diff between 'protected' and
> 'Token.SKIP'
>
> 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