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



_______________________________________________ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to