bug-bison
[Top][All Lists]
Advanced

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

Re: bison.simple as constant?


From: Hans Aberg
Subject: Re: bison.simple as constant?
Date: Thu, 4 Jan 2001 18:58:13 +0100

At 13:41 +0100 1-01-04, Axel Kittenberger wrote:
>Well Wouldn't need to be an dll...
>
>The first lines of my bison.simple as constant would then look like this.
>----------------------------------------------------------------------
>const char * bison_simply =
>"/* -*-C-*-  Note some compilers choke on comments on `#line' lines.
>*/\n"
>"#line 3 \"bison.simple\"\n"
>"/* This file comes from address@hidden@.  */\n"
>"\n"
>"/* Skeleton output parser for bison,\n"
>"   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.\n"
>----------------------------------------------------------------------

Oh, I see what you mean. You could probably do it yourself; I think that
the Flex distribution
ftp://ftp.digital.com/pub/GNU/non-gnu/flex/flex-2.5.4a.tar.gz has a script
doing something like that.

>If you say you prefer to have it as separate file, it's fine also :o)

You have to wait and see what Akim Demaille says, who is developing Bison
right now.

However, I persuaded Akim to implement dynamically computed #line numbers,
because it often happens that one has to edit the skeleton files on local
platforms, for different languages (C/C++), etc. This also makes it easier
to make use of several different skeleton files in the future.

So this is a direction opposite of what you are asking for.

But as it already exists in Flex, what you are asking for would not be
difficult to implement.

Why do you want the feature?

  Hans Aberg





reply via email to

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