delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/01/06:18:53

From: dannygrasse AT mindspring DOT com (Danny Grasse)
Subject: Bug - byacc : %union problem
1 Apr 1998 06:18:53 -0800 :
Message-ID: <351C6DA1.DB0492A4.cygnus.gnu-win32@mindspring.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT avlinsun DOT avlin DOT stpn DOT soft DOT 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 AT eos DOT ncsu DOT edu
dlgrasse AT mindspring DOT com
***********************


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019