[Top][All Lists]

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

Re: Bison test version 2.0a released

From: Hans Aberg
Subject: Re: Bison test version 2.0a released
Date: Tue, 24 May 2005 20:11:56 +0200

At 16:22 -0700 2005/05/23, Paul Eggert wrote:

 > Bison should make some check for version of m4.

That might cause more problems than it cures, as some older versions will
work as described below.  I'd rather leave it alone for now.

I got the idea to do write out the M4 version number in the output parser file, though I failed on my first attempt -- so I understand if you do not want to implement anything like it now. In short though the idea is to do the following:

In file output.c, output_skeleton(), open up a pipe "m4 --version", and put its out in a M4 macro b4_m4_version, by a
  MUSCLE_INSERT_STRING ("m4_version", buf);
Then, in data/c.m4, change the line to:
  [/* A Bison parser, made by GNU Bison b4_version, using
      GNU M4 b4_m4_version.  */

I am not sure it is worth the effort. M4 must be run twice, as M4 does not seem to have a built-in macro by which its version can be reached. If there was such a macro available, it could be used instead of the b4_m4_version created above.
  Hans Aberg

reply via email to

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