[antlr-interest] Getting token types programmatically from lexer

Vladimir Gusev vgusev at graphlogic.com
Wed Feb 14 06:58:11 PST 2007


Hello,

For my domain language editor I need to determine programmatically the
available functions and display them for the user. Currently I am extending
from the generated MyLexer and add in the child class add a public method
getLiterals(), which is a public getter for the protected literals
hashTable. Is this a "recommended" approach? 

Thanks a lot.

Vladimir



More information about the antlr-interest mailing list