%token BAR
%%
/* ... */
%%
/* ... */
and then compile it with 'bison foo.y', i get the definition of BAR at
the top of foo.tab.c:
#define BAR 257
but what i would really like is for it to be defined in a header file (such
as foo.tab.h) so that i can #include it in the flex part of my parser.
sorry, i've just started learning lex and yacc and i'm not entirely sure of
the conventions for these sorts of things, but this would sure be useful :).
i've gone through the man page for bison and can't find any command-line
option that would be useful.
cheers
--
/"\ m i k e b u r r e l l
\ / ASCII RIBBON CAMPAIGN mik...@home.com
X AGAINST HTML MAIL,
/ \ AND NEWS TOO, dammit
bison -d foo.y
--Ken Pizzini