[antlr-interest] Why is getTokenNames() defined in BaseRecognizer?
Terence Parr
parrt at cs.usfca.edu
Mon Mar 30 14:45:18 PDT 2009
All recognizers can answer whether token list is; the default
implementation is simply null. it is overridden in subclasses.
T
On Mar 30, 2009, at 8:24 AM, Dennis Benzinger wrote:
> Hi!
>
> Why is getTokenNames() defined in BaseRecognizer if it only returns a
> non null value in the Parser? Wouldn't it be better if were only
> defined
> in Parser?
>
> Are there "historical" reasons for this or will getTokenNames()
> return a
> non null value in the lexer in the future too?
>
>
> Dennis Benzinger
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list