[antlr-interest] Accessing the token list from a lexer?
Richard Tibbetts
tibbetts at streambase.com
Thu Jun 1 12:54:12 PDT 2006
In ANTLR 2.7.x is there a clean way to get the token list out of a
Lexer generated by ANTLR? I'm working in Java if that makes a
difference.
I can see hackish ways (access the literals hashtable, and extract the
string byte-by-byte from the ANTLRHashString objects), but nothing
cleaner is jumping out at me.
Thanks,
Richard Tibbetts
More information about the antlr-interest
mailing list