X-Originating-IP: [24.27.64.187] From: "Thomas Hutto" To: djgpp AT delorie DOT com Subject: Newbie needs Bison help Date: Mon, 08 Oct 2001 17:25:42 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Oct 2001 22:25:42.0789 (UTC) FILETIME=[2ABB9B50:01C15048] Reply-To: djgpp AT delorie DOT com 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