[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Including nonterminals in tab.h
From: |
Hans Aberg |
Subject: |
Re: Including nonterminals in tab.h |
Date: |
Sun, 29 Aug 2004 19:46:08 +0200 |
At 08:46 -0400 2004/08/28, address@hidden wrote:
>Is there a way to have Bison include definitions for the non-terminal
>symbols in the tab.h file?
>
>The non-terminal symbol names are available in the yytname table, but I
>could find no easy way to get defines/enums for the names and token numbers
>into tab.h (or another) file. Did I miss something?
>
>If a patch is required to do this function, could a developer give me a
>rough estimate of what is involved?
I think that Bison now puts the stuff into M4 macro, and then writes that
out. Check what macro in the skeleton file writes the yytname table, and
then copy over a suitable version the part that writes the .h header file.
Then invoke this altered skeleton file using the --skeleton option.
Hans Aberg