Thursday, October 26, 2000 07:25 PM
How do I make ANTLR build a lexer that uses
my own token class?
Re: How do I make ANTLR build a lexer that uses!_NEWLINE_!my own...
Tuesday, May 1, 2001 01:48 AM
You can set the factory used to generateTokens with a call to setTokenObjectFactory.Check out the java/C++ file for CharScanner.
Caveat: you probably have to do a lot ofcasting.