This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bison for NT


Earlier today I wrote:
> Has anyone here ported bison to the NT?  If so, I would appreciate
> the details.  When successful, I will post instructions and also put
> them up on a web site.
>
> While I would be happy to use the cygwin-32 package to build bison,
> I need to be able to compile the parsers it generates using MSVC.

I reinstalled gnu-win32 b18 and this time bison configured and
compiled right out of the box.  I ran `configure' from bash (and
ignored `configure.bat' this time) and the ran `make'.  

The parser code that the resulting bison produced compiles without a
hitch under gcc, but I had a little trouble compiling it under MSVC
until I realized that I needed to #define MSDOS myself.  The initial C
code of my yacc file now contains:

  #ifdef _MSC_VER
  #define MSDOS 1 /* NT bison needs this */
  #endif

The resulting parser treats my grammer in the manner that I desired.

Thanks to all who replied,

Kirk Hilliard

P.S. I would still love to hear from anyone who has an opinion on
     whether my grammer is simply taking advantage of a loophole in
     bison and the 5 UNIX yaccs.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]