Hello (Again)

I am playing with the CommonTree object. It has a method called getType()
that gives an int for token. How do I get the actual token name from that
int?

I saw in the archives that this question is asked but could not really find
the method String getTokenName(int) as answered in that post. Instead, I
find the method String[] getTokenNames() which is not suitable to my need.

Also here in the javadoc for Parser class, a method called String
getTokenName(int ) appears but it does not seem to be available in my parser
class which is an infact extended from parser class.

Thanks for your answers.

Ketan

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