[Top][All Lists]

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

Re: Locations and mid-rule actions

From: Hans Aberg
Subject: Re: Locations and mid-rule actions
Date: Mon, 20 Dec 2004 21:24:54 +0100
User-agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6

On 2004/12/20 04:56, Paul Eggert at address@hidden wrote:

>> Now I see that the current behaviour can also be useful. Since the
>> location of the mid-rule action will be a part of the final
>> location, it seems reasonable to leave it empty.
> Also, it is more consistent with the POSIX-required behavior that a
> mid-rule action be (roughly) equivalent to an action on an empty rule.
> Empty rules have empty locations, so....

It is not clear what should be a useful location for diagnostics. Original
Bison uses as default the region which has the grammar symbol as sentence.
However, a more practical values for error location is the line on which the
wrror occurrded for, plus the offset of the failing token on that line.

Does POSIX say anything about locations?

  Hans Aberg

reply via email to

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