I'm wondering if there's an easy way to switch back and forth between
different lexers while processing a stream. I'm working with Java
language documents, and I'd like to be able to break down /**...*/
comments into components - but to do this, I'd need to switch modes when
I enter the start of a comment, and switch back to normal Java lexer
rules at the end of the comment.

Any ideas?

I can do this in my own code, breaking down the comments into different
types of tokens that become part of the token stream - but that's
basically just writing my own lexer, which seems kind of silly.

  - Dennis


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to