[antlr-interest] Fwd: Better Error Reporting in ANTLR

Adam Connelly adam.rpconnelly at googlemail.com
Thu Apr 17 12:14:30 PDT 2008

Cool, sounds good.  I think for me the most useful part of it is
distinguishing between the token name, a description of the token and the
text matched on the input so you can do stuff like "expected ';'" instead of
"expected SEMI" without having to override error reporting methods.


On 17/04/2008, Loring Craymer <lgcraymer at yahoo.com> wrote:
> Ter--
> While you are doing that, you might take a look at your ErrorManager class
> from the ANTLR 3 source; I believe that that can be reworked as a library
> class/interface without a horrendous amount of effort (although it is not a
> trivial task), and it provides useful functionality as well as
> StringTemplate support.  Adding external listener support to that sounds
> promising.
> --Loring
> ----- Original Message ----
> From: Terence Parr <parrt at cs.usfca.edu>
> To: Adam Connelly <adam.rpconnelly at googlemail.com>
> Cc: antlr-interest Interest <antlr-interest at antlr.org>
> Sent: Thursday, April 17, 2008 11:01:26 AM
> Subject: Re: [antlr-interest] Fwd: Better Error Reporting in ANTLR
> Adding "bug"So I can think about this later. Having ANTLR do Something
> like ST those for error listening is reasonable; I am not sure why I
> didn't duplicate that in ANTLR...perhaps habit from previous versions...
> http://www.antlr.org:8888/browse/ANTLR-244
> Ter
> ------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080417/662481d7/attachment.html 

More information about the antlr-interest mailing list