[antlr-interest] strong error recovery
Monty Zukowski
monty at codetransform.com
Wed Jul 28 09:50:10 PDT 2004
Take a look at my parser filter example,
http://www.codetransform.com/filterexample.html. It requires a bit of
work and understanding of ANTLR, explained in the article, but it lets
you use a parser to pick out certain constructs and ignore everything
else.
Monty
ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit --
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html
On Jul 28, 2004, at 5:29 AM, Neurosurg wrote:
> Hi all,
>
> the typical input for my parser contains a lot of
> unregular garbage between formulae. I have to recognize
> and extract valid formulae.
>
> Here goes an example.
>
>> From input :
>
> asd3 a#$23+5)@tyu((5+7)*5pppp
>
> parser should extract:
>
> 3
> 23+5
> (5+7)*5
>
> Any chances with ANTLR engine?
>
> w.r.t. subject I have found already:
>
> 1. "filter=..." option (BTW, which is available for the Lexer only)
>
> 2. options "ignore", which was used in HTML parser example (also for
> Lexer only),
>
> 3. nice exception handling support for grammar
>
> but it doesn't look much helping still.
>
> Any good hints/comments?
>
> thanks a priori,
> Valery.
>
> P.S. I've found antlr just recently, before I've
> used lex/yacc and flex/bison.
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list