help-bison
[Top][All Lists]
Advanced

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

Re: Is there a replacement for yychar


From: Hans Aberg
Subject: Re: Is there a replacement for yychar
Date: Fri, 12 Dec 2014 12:51:21 +0100

> On 12 Dec 2014, at 07:35, Matthias Simon <address@hidden> wrote:
> 
>> It is probably best to stick to the newer version only, to avoid bugs.
> Sadly, that is not really an option for me (due to outdated targets, high 
> variety of developer-machines, difficulties with non-standard 
> installations,...). Hence, I probably will workaround in the build-system 
> like:

In a distribution, one normally includes the parser output files, leaving it as 
an option to compile it for those that wish. Then an up-to-date Bison is not 
needed locally.

> if [ $($BISON --version | head 1 | ...) -lt 3 ]; then
>    write_header_config "#define yychar yyla.type”
> fi

Right. It might suffice to put it directly in the .yy file, as later version do 
not seem to have yychar.





reply via email to

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