[antlr-interest] NoViableAltException.expecting ?

Sebastien Boving me at sebastienboving.com
Wed Nov 16 08:52:04 PST 2005


Any existing work-arounds to this (finding out a list of failed matches
after a NoViableAltException), however cumbersome, until this feature makes
it in an upgrade? Or should i turn to other parsers for such a
functionality?

thank you,
-seb.



On 11/16/05, Geir Ove Skjaervik <geiroves at online.no> wrote:
>
> Hello,
>  Not a stupid question at all. I think it is just a ANTLR 2.x weakness
> that we can just hope will get rectified in an 2.x upgrade. I sure miss a
> more sensible exception in that case as well.
>   Geir Ove
>
>  -----Original Message-----
> *From:* antlr-interest-bounces at antlr.org [mailto:
> antlr-interest-bounces at antlr.org] *On Behalf Of *Sebastien Boving
> *Sent:* 16. november 2005 07:49
> *To:* antlr-interest at antlr.org
> *Subject:* [antlr-interest] NoViableAltException.expecting ?
>
>
> I searched the mailing list but noone seems to have asked for this so far,
> yet i'm a newbie so it must be a stupid proposal... Basically i can't find
> why, next to the unexpected token, NoViableAltException doesn't record what
> it tried to match against (such as MismatchedTokenException.expectingdoes)? This looks like it would be useful information to include for error
> reporting or auto-completion features. Or are there other, better ways of
> investigating the parser's state at the time of a RecognitionException?
>
> thanks,
> -seb.
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051116/fd001564/attachment.html


More information about the antlr-interest mailing list