[antlr-interest] "protected" lexer rules

matthew ford Matthew.Ford at forward.com.au
Sun Nov 7 15:30:49 PST 2004


Hi John,
Ignoring the generated code for a moment,
Is is possiable for there to be multiple Lexer.g files where one .g file
overrides the others
"protected" rules.
If not then "private" seems more appropiate.
matthew

----- Original Message ----- 
From: "John D. Mitchell" <johnm-antlr at non.net>
To: <antlr-interest at yahoogroups.com>
Sent: Monday, November 08, 2004 10:19 AM
Subject: Re: [antlr-interest] "protected" lexer rules


>
> >>>>> "matthew" == matthew ford <Matthew.Ford at forward.com.au> writes:
> [...]
>
> > what about private
>
> Ugh. That would get even more confusing.
>
> The "protected" keyword was used since the methods of those rules in the
> generated lexer need to be overridable by sub-classes.
>
> Take care,
> John
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>



 
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