[Top][All Lists]

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

Re: Bison-1.28a Skeleton file #line suggest

From: Hans Aberg
Subject: Re: Bison-1.28a Skeleton file #line suggest
Date: Thu, 5 Oct 2000 12:18:15 +0200

At 11.10 +0200 0-10-05, Akim Demaille wrote:
>Hm.  I don't know.  I mean, it's a good idea and patches are always
>welcome.  But I think it is a good thing that the skeleton be signed
>with the version of the distribution it's coming from (in order to be
>able to check that there is no mismatch between bison(1) and
>But maybe I'm too paranoid.

It's still easy to keep that check and issue an warning (or error) if the
file is not recognized. If somebody uses a skeleton file of their own,
there should then be the possibility to turn that warning (or error) off by
a special startup option. Or something.

One possibility could be that the skeleton file must have a directive
%version <version>
which tells which version of Bison it is tuned up to; if there is not an
agreement, Bison issues an error and stops. It's easy to edit that line in
the skeleton file if one is using one of one's own.

It depends on people wanting to make their own skeleton files or not, for
experimentation or whatever. Some platform depend stuff though should/must
be put in the skeleton file, though, so it's good having the possibility to
change it.

(Note that for example the Hasskell interpreter Hugs
http://haskell.org/hugs does not have such a version check for its Prelude.)

  Hans Aberg
                  * Email: Hans Aberg <mailto:address@hidden>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>

reply via email to

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