[antlr-interest] Re: "protected" lexer rules
Bryan Ewbank
ewbank at synopsys.com
Mon Nov 8 06:51:52 PST 2004
Perhaps I'm in the minority here, but "protected" defines precisely what it
does; all rules default to "public", but those which are not to be accessed
by clients are marked "protected".
What's the fuss? It's not really broken, and this seems somewhat a
gratuitous
difference between 2.x and 3.x.
-- Bryan Ewbank
> Ok, folks, time to come up with a better name for lexer rules that
> are not real tokens (they are only rules called by other rules).
> Currently it's "protected", which is hideous:
>
> FLOAT : (DIGIT)+ '.' DIGIT | (DIGIT)+ ;
>
> protected
> DIGIT : '0'..'9' ;
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list