[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefining YYRHSLOC in the GLR parser

From: Frank Heckenbach
Subject: Re: undefining YYRHSLOC in the GLR parser
Date: Wed, 15 Dec 2004 21:07:59 +0100
User-agent: semail 20041018

Paul Eggert wrote:

> Frank Heckenbach <address@hidden> writes:
> > perhaps one could reuse YYLLOC_DEFAULT like this:
> >
> > - call YYLLOC_DEFAULT with N=2 (this might involve creating a
> >   temporary array of these two locations)
> >
> > - copy the result entirely to the error location
> Thanks for the suggestion.  I did that.  While doing that, I noticed
> that the current usage of yyerror_range wasn't portable, since it
> subtracts 1 from the start of an array, which has undefined behavior
> in C.  So I installed this patch to fix both problems.  Please give it
> a try.

AFAICT (I haven't looked at error locations too much so far) it
works ok. Thanks.


Frank Heckenbach, address@hidden
GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]