> On 12 Dec 2014, at 07:35, Matthias Simon <m...@5nord.de> 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.



_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to