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


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to