How do I make ANTLR build a lexer that uses!_NEWLINE_!my own...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jim_Foley
Posted On:   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...

Posted By:   Ric_Klaren  
Posted On:   Tuesday, May 1, 2001 01:48 AM

You can set the factory used to generate
Tokens with a call to setTokenObjectFactory.
Check out the java/C++ file for CharScanner.

Caveat: you probably have to do a lot of
casting.

About | Sitemap | Contact