[antlr-interest] ANTLR runtime logging. System.err messages from antlr

Jim Idle jimi at temporal-wave.com
Wed Sep 28 08:51:36 PDT 2011


This means that your lexer has bugs in it and is not catering for all
situations. Just use the input that is causing this to find out what it
wrong with your lexer.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Luchesar Cekov
> Sent: Wednesday, September 28, 2011 4:18 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] ANTLR runtime logging. System.err messages
> from antlr
>
> Hi guys,
>
> My ANTLR parser is pretty mature now and working in production for a
> long time.
> The only thing that's bothering me is I am getting lots of System.err
> logging like this:
>
> line 0:-1 mismatched input '<EOF>' expecting <EOR> line 0:-1 mismatched
> input '<EOF>' expecting <EOR> line 0:-1 mismatched input '<EOF>'
> expecting <EOR> line 0:-1 mismatched input '<EOF>' expecting <EOR> line
> 0:-1 mismatched input '<EOF>' expecting <EOR> line 17:16 mismatched
> input '"' expecting <EOR> line 17:16 mismatched input '"' expecting
> <EOR> line 17:18 mismatched character '<EOF>' expecting '"'
> line 17:16 mismatched input '"a' expecting <EOR> line 17:19 mismatched
> character '<EOF>' expecting '"'
> line 17:16 mismatched input '"as' expecting <EOR>
>
> This is logged somewhere in the ANTLR runtime. Is there a way to
> redirect or stop that particular log messages?
>
> Thanks,
> Luchesar
>
> --
>
> Luchesar Cekov
> Software Engineer
> +44 (0)20 7239 4949
> *Ontology Systems*
> www.ontology.com <http://www.ontology.com/>
>
>
>
> cid:image001.gif at 01CB28DC.799AB7D0
>
> Registered Office: Ontology-Partners Limited, Dalton House, 60 Windsor
> Avenue, London SW19 2RR, UK
>
> Company Registration No. 5794201


More information about the antlr-interest mailing list