[antlr-interest] Fuzzy parsing question.

Terence Parr parrt at cs.usfca.edu
Tue May 15 09:19:48 PDT 2007


On May 15, 2007, at 9:10 AM, Alex Shneyderman wrote:

> Ok, it seems that all I really need for my task is to use the filter
> option of antlr3. Except, I do not want to throw everything that does
> not match. I want to be able to collect that under on "DEFAULT" token.
>
> How does one go about enabling that?

DEFAULT : .+ {otherJunk.add($DEFAULT.text);} ;

or some such.

Ter



More information about the antlr-interest mailing list