[antlr-interest] Let filter return token

Ilia Kantor ilia at obnovlenie.ru
Sun May 15 16:39:42 PDT 2005


I have a grammar e.g

LCURL: '{';
RCURL: '}' ;
ASSIGN: ":=";
....

I want all tokens not matched by existing rules to be returned as ANY.
Looks like "filter" option is right for that, but how to let it return token
?

All I see is "protected" filtering rules introduced to scarf, not to
return..



More information about the antlr-interest mailing list