Mail Archives: djgpp/2001/10/08/18:29:52
I've RTFM'd till I sick. So maybe there is some help out there, pretty
please?
Need to implement YYPRINT.
So in the C-section add
#define YYDEBUG 1
#define YYPRINT(a,b,c) yyprint(a,b,c)
In the Bisson types section I must have
%union
{
char rxch;
int rxint
str rxstr;
} for the YYSTACK's type.
Which yields a
typedef union {
char rxch;
int rxint
str rxstr;
}YYSTYPE;
in the parser code _AFTER_ the stuff from the C-Section.
This means that when I prototype my
stactic void yyprint(FILE *F, int type, YYSTYPE value);
function the compiler complains because it has not yet seen the typedef for
the union.
Anyway to make Bisson behave other than directly editing the generated
C-Code (y.tab.c)? Have a hunch that TFM left off a critical step and I'm
not good enough at C-Code to figure what it is.
I tried to cobble up a forward declaration for the union without success.
--
Tom Hutto thutto AT houston DOT rr DOT com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
- Raw text -