CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Flex and Bison

  1. #1
    Join Date
    Apr 2001
    Posts
    15

    Flex and Bison

    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


  2. #2
    Join Date
    May 2002
    Posts
    1,798
    Wilbur Street has a free port of lex (flex) and yaac (bison) to Win32.

    http://www.monmouth.com/~wstreett/le.../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
    mpliam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured