[antlr-interest] The filter option

Martin Kortmann email at kortmann.de
Thu Aug 2 14:28:52 PDT 2007


Gavin Lambert schrieb:
> At 08:23 3/08/2007, Marcos Marín wrote:
>> So you mean that I can't use a parser if I specify the filter option?
>> if this is the case, is there any way I can ignore everything else
>> without the filter option?
> 
> You can't use filtering in a combined lexer/parser grammar.  But you can
> create a standalone filtering lexer, then consume the tokens it
> generates using a separate standalone parser.  (See the tokenVocab option.)
> 

Where is the problem? It seems to work for me.

Martin


More information about the antlr-interest mailing list