bug-bison
[Top][All Lists]
Advanced

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

Re: [PATCH] Do not allow identifiers that start with a negative number.


From: Akim Demaille
Subject: Re: [PATCH] Do not allow identifiers that start with a negative number.
Date: Wed, 26 Jan 2011 17:34:02 +0100

Le 20 janv. 2011 à 07:27, Paul Eggert a écrit :

> On 01/19/2011 12:13 AM, Alex Rozenman wrote:
>> it is impossible to obtain an unambiguous grammar with syntax extensions
>> like id '[' c_id ']' without involving the ';' requirement.
> 
> Yes, but that's OK; that's what I'm proposing.  That is, I'm proposing that
> if a user wants to use the new syntax extensions, the user also must put ';'
> at the end of each rule.
> 
> It's OK to require ';' for new grammars.  Omitting ';' has been deprecated
> for many years, and no new grammars should be omitting ';'.

I think we used to have a warning about missing ';', a warning that was removed 
at some point.  I think it should be implemented again.


reply via email to

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