[antlr-interest] Fuzzy parsing question.

Alex Shneyderman a.shneyderman at gmail.com
Tue May 15 10:34:43 PDT 2007


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

this does not work. I get infinite loop this way. I changed it to

 DEFAULT : ~(ANYUSEFULSTARTER)

but this produces a lot of on char tokens. I would lie to force lexer
to aggregate
it.

Any ideas?

Thanks,
Alex.


More information about the antlr-interest mailing list