help-bison
[Top][All Lists]
Advanced

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

Re: Extra code in x.tab.h


From: Hans Aberg
Subject: Re: Extra code in x.tab.h
Date: Sun, 1 May 2005 14:53:11 +0200

At 08:28 +0100 2005/04/30, Rob Desbois wrote:
Is it possible to direct bison to insert extra code into x.tab.h - I
ask because my %union  directive has as one of its members a struct
that is defined in a separate header file - ideally this would be
included in the generated x.tab.h otherwise I have to make sure it is
always included first.

I do not think so. It is not as such because one just has to put the right M¤ macro in the skeleton file, and define this macro. But currently, I do not think there is a practical way to do it via Bison. There is an experimental %define command, but it is not currently suitable for entering code.
--
  Hans Aberg




reply via email to

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