From: Andrew Crabtree Message-Id: <199704161628.AA039028119@typhoon.rose.hp.com> Subject: Re: advice on bison required To: grbhat AT unigoa DOT ernet DOT in (Gurunandan R. Bhat) Date: Wed, 16 Apr 1997 9:28:39 PDT Cc: djgpp AT delorie DOT com In-Reply-To: ; from "Gurunandan R. Bhat" at Apr 15, 97 10:28 am Precedence: bulk > #define YYSTYPE double > > #define YYSTYPE double > #define NUM 258 > extern YYSTYPE yylval; > --------------------------------- > Why aren't you using the %union declaration. If I do this .y ------------------------------ %{ /* C includes and globals */ %} %union{ double dval; } %token name %% list : name ----------------------------- and compile with -d I get this .h --------------------------- typedef union { double dval; } YYSTYPE; #define name 258 extern YYSTYPE yylval ---------------------------- Andrew