bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bison H file generation


From: Yair Grosu
Subject: Bison H file generation
Date: Fri, 9 Apr 2004 13:08:46 +0200

Hi,

I have been using Bison with the -d option to generate a header file to be used by flex.

I have defined the '#define YYSTYPE double' in the grammar file, but the output ignores this and the header file only contains the type as int as follows:


#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)

typedef int YYSTYPE;

# define yystype YYSTYPE /* obsolescent; will be withdrawn */

# define YYSTYPE_IS_DECLARED 1

# define YYSTYPE_IS_TRIVIAL 1

#endif

extern YYSTYPE yylval;

This goes for the Gnuwin32 from SourceFourge and the Cygwin version.

Thanks


Yair Grosu

mailto: address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]