[antlr-interest] Getting information about first error occurance C Target V3.4

Jim Idle jimi at temporal-wave.com
Mon Jul 23 08:36:25 PDT 2012


As indicated in my last reply, you just need to install your own error
handler (which everyone should do in fact as the built in one is really
just an example showing you how to get information). The error handler can
then record information without sending anything to stderr.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Paxi
> Sent: Monday, July 23, 2012 8:05 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Getting information about first error
> occurance C Target V3.4
>
> >From the description it seems that
> >rec->state->exception->charPositionInLine
> holds the charPositionInLine from the position of the first token where
> an exception occured. It also seems to work for me for now but if there
> is something better than that feel free to tell me ;)
>
> And one final thing: Is there a way to suppress the error notices that
> ANTLR3 automatically writes to stdout or stderr (dunno what channel is
> used) or do i have to look at the source again and outcomment it?
>
>
>
>
>
> --
> View this message in context:
> http://antlr.1301665.n2.nabble.com/Getting-information-about-first-
> error-occurance-C-Target-V3-4-tp7578454p7578455.html
> Sent from the ANTLR mailing list archive at Nabble.com.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list