[antlr-interest] generating nice error messages
Jim Idle
jimi at temporal-wave.com
Wed Aug 20 08:23:20 PDT 2008
On Wed, 2008-08-20 at 14:01 +0200, Gerard van de Glind wrote:
> Hi all,
>
>
>
> Which options do I have to generate nice error messages with ANTLR
> when the grammar contains rules that have the backtrack option set to
> true?
>
>
>
> The problem I have with backtracking rules is that I lose detail about
> the exceptions that occur.
>
> This is because the exception is delayed until the backtracking rule
> has no other alternative left.
This is a side effect - you need to not use backtracking or use it
sparingly on just those rules that might benefit. You should probably
regard backtracking as a prototyping option.
Jim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080820/39e5ad24/attachment.html
More information about the antlr-interest
mailing list