This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Bug - byacc : %union problem
- To: gnu-win32 at cygnus dot com
- Subject: Bug - byacc : %union problem
- From: Danny Grasse <dannygrasse at mindspring dot com>
- Date: Fri, 27 Mar 1998 22:25:21 -0500
I have the same problem. The YYSTYPE construct is flawed. Also, it
does not copy in my '#include' correctly.
For example:
---------------------------------------------------
%{
#include <stdio.h>
#include "SymbolTable.h"
#define TRUE 1
#define FALSE 0
#define YYDEBUG 1
%}
%union { int intVal; char charVal; char* charStarVal; }
----------------------------------------------------
produces this output ->
---------------------------------------------------
typedef union { int intVal; char charVal; char* charStarVal; }.h"
#define TRUE 1
#define FALSE 0
#define YYDEBUG 1
#line 12 "decaf.y"
typedef union { int intVal; char charVal; char* charStarVal; } YYSTYPE;
YYSTYPE;
extern YYSTYPE yylval;
-------------------------------------------------------
I know this problem was reported as per "Ajay Gautam
(ajay@avlinsun.avlin.stpn.soft.net)
Wed, 18 Mar 1998 11:41:20 +0500 (GMT) " but I haven't seen a reply or
fix.
Thanks for your help
--
***********************
Danny Grasse
5552 Burnlee Pl.
Raleigh, NC 27609
(919)676-1941
dlgrasse@eos.ncsu.edu
dlgrasse@mindspring.com
***********************
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".