bug-bison
[Top][All Lists]
Advanced

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

Bison 1.50 pre & post prologue bug


From: Hans Aberg
Subject: Bison 1.50 pre & post prologue bug
Date: Mon, 14 Oct 2002 00:50:17 +0200

Bison 1.50 does not seem to handle the pre & post prologues properly; that
is, when writing:
%{
  pre_prologue
%}
...
%{
  post_prologue
%}
...
%%
...
in the .y files as above, the b4_post_prologue macro expands to empty, and
all stuff goes into the first b4_pre_prologue macro.

-- I need this for writing my C++ skeleton file: Some stuff should then go
into the header and other into the source file. This is often required with
polymorphic classes and stuff relying on forward declarations, but also
useful in order to decrease the number of headers that the header includes.

  Hans Aberg






reply via email to

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