van172b
March 6th, 2002, 08:01 PM
Hello,
I am trying to get flex and bison with VC6 and have no clue on how to set them up. I have used both lex and yacc on UNIX but I just dont know how to set up Flex or Bison on my Win32 machine
Mike Pliam
September 2nd, 2002, 11:23 AM
Wilbur Street has a free port of lex (flex) and yaac (bison) to Win32.
http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html
You can download the executables, flex.exe and bison.exe. Get the O'Reilly book "lex & yacc" by Levine, Mason and Brown. Even though it's written with Unix in mind, it still has alot of useful examples.
So far, I've been able to write some Lex Source Files and run flex.exe on them from the MSDOS command environment and produce a lex.yy.c file. Unfortunately, I have as yet been unable to compile such files using VCPP 6.0, mainly because I don't have the required flex library, -lfl. Street's documentation doesnt mention how one is supposed to aquire this library. Perhaps that's what all the other flex data and source files are for, compiling the lfl library. But I havnt been able to set this up using VCPP 6.0 either.
Any information on this subject you might wish to share would be greatly appreciated.
Mike