[antlr-interest] Requesting ANTLRHashString.getString() Method !
Geir Ove Skjaervik
geiroves at online.no
Mon Sep 19 04:20:03 PDT 2005
Hello,
I am using ANTLR tp build my own little language, and using the Tree
Walker to execute it. I wan to get a list of all the defined Literals
(commands). ANTLR keeps track of this in the Literals Table which it
keeps in the CharScanner.literals Hashtable. So, I can enumerate over
the keys in the literals Hashtable and get all the ANTLRHashString
instances. However, there is NO simple getter method to get the Name
(String) of the Literal defined !
I added this simple method to ANTLRHashString:
public String getString() {
return s;
}
I thought this simple modification would be useful to more users, so why
not add this simple non-intrusive getter in the next 2.7.x Udpate,
Please ?
regards
Geir Ove Skjaervik
Objective Software Solutions
Norway
Phone: Int+907-48-869
Fax: Int+47-6988-5947
E-mail: objective.software at online.no
WEB: <http://www.objective.no/> http://www.objective.no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050919/6ee428c0/attachment.html
More information about the antlr-interest
mailing list