[antlr-interest] Newbie Q: A token for "other" characters?

Micheal J open.zone at virgin.net
Mon Aug 7 02:53:53 PDT 2006


Hi,

> in flex, I was able to pass all characters to a parser not 
> directly matched by a specific token. How can I achieve the 
> same behavior with ANTLR?
> 
> BTW: I think that this would be something for the FAQ / Wiki 
> if it's not there yet - but I was unable to find it.

See the filter option:

http://www.antlr.org/doc/lexer.html#Filtering%20Input%20Streams


Micheal

-----------------------
The best way to contact me is via the list/forum. My time is very limited.



More information about the antlr-interest mailing list