[antlr-interest] utility methods in Lexer.

praveen_c praveen_c at yahoo.com
Fri Oct 25 13:26:56 PDT 2002

How can I create java methods in Lexer? I need a method such as 
isTypeName(). This method will help me reduce the amount of code I 
have to write in a semantic predicate.

I created a class 'X' that extends antlr.CharScanner, coded the 
method in class 'X' and made my Lexer inherit from 
class 'X'. But when I try to run the grammar through antlr I get the 
following error:

error: grammar X not defined

Please help.

Thanks in advance,


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list