bison-patches
[Top][All Lists]
Advanced

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

Re: yytype_FOO


From: Akim Demaille
Subject: Re: yytype_FOO
Date: Mon, 4 Mar 2013 10:08:47 +0100

Le 4 mars 2013 à 10:05, Paul Eggert <address@hidden> a écrit :

> On 03/03/2013 11:51 PM, Akim Demaille wrote:
>> I fail to see why one would like to depend
>>  on a token number during preprocessing
> 
> Unfortunately this sort of thing is more common than
> it might appear at first glance.  E.g., people do things
> like this:
> 
> 
> switch (val)
>  {
>     case PLUS:
> #if PLUS != ADD
>     case ADD:
> #endif
>       ... code to handle PLUS and ADD...
>  }
> 
> Offhand I don't know of any specific examples of stuff
> like that, but I wouldn't be surprised if it existed.

OK, thanks Paul!




reply via email to

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