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: Paul Eggert
Subject: Re: [PATCH] Do not allow identifiers that start with a negative number.
Date: Sat, 08 Jan 2011 11:31:50 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 01/08/2011 10:29 AM, Joel E. Denny wrote:
> id       -|({letter}|-({letter}|-))({letter}|[-0-9])*

Sorry, I guess I don't understand the point of this.
Why should "---39---" be an identifier?  And if so,
why should "--39--" *not* be an identifier?

The more I think about this, the more I think that it
is a mistake for Bison to allow "-" in identifiers.
This is incompatible with C and with C++ and with Java,
and is bound to lead to more problems elsewhere.  Can
someone remind me why we're doing this?



reply via email to

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