bison-patches
[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:35:26 +0100

Le 25 janv. 2011 à 04:47, Joel E. Denny a écrit :

> Also, as you probably recall, the reason scan-gram.l has to be so messy in 
> order to support omitting semicolons is because Bison-generated parsers 
> support only one token of lookahead.  However, after 2.5, I'd like to 
> propose a mechanism that enables a user to cleanly extend lookahead at 
> particular points in a grammar.  About a year ago, I implemented that 
> mechanism offline and successfully used it to clean up this area of the 
> grammar without changing the functionality.  So, whenever we return to 
> this issue, if we find that there's no other nice way to clean up this 
> code without losing important backward compatibility, we'll still have a 
> decent way out.

That sounds like a very reasonable plan!




reply via email to

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