home *** CD-ROM | disk | FTP | other *** search
- This is flex-2.3.7 compiled to run under MS-DOS using DJ Delorie's GCC/G++
- compiler. Since it was compiled with GCC, it will only run on 386 or above
- machines. If you need a version of flex for "lesser" PCs, look for
- flex236.zoo (or .zip, or .arc, etc.) at your nearest FTP site. If you do
- get flex236.*, remember this- all the archive sites I found it at do not
- have the file flex.ske in the archive. You must have this file to run
- flex, so you may have to get it from the original GNU distribution.
- This archive should contain the following files:
- flex.exe - the Fast LEXical scanner
- flex.skl - the flex skeleton file; flex236.* calls it flex.ske
- and it was called flex.skel in the distribution
- flex.man - the UNIX man pages to flex
- flexdoc - the UNIX document describing flex
- changes - a list of changes in flex; describes how flex-2.3.7
- differs from flex-2.3.6, how flex-2.3.6 differs from
- flex-2.3.5, etc.
- copying - notice of copyright and your rights
- makefile - original makefile; didn't work correctly
- dosdiffs - changes that had to be made to get it to run
- under dos
- readme.dos - this file
- You should leave flex.skl and flex.exe in the same directory for it to
- work as I compiled it to look in the current directory for flex.skl. If
- you don't like this, you may be able to change it with the -S option. See
- the flex.man file.
- I only had to change the file flexdef.h slightly to get it to compile
- with GCC for DOS. All I had to do was change memset from char to void and
- comment out the UNIX kernel calls using PROTO. The makefile isn't very
- good. I had to build it by hand because 1) it recompiles the sources an
- unnecessary 2nd time, leaving out necessary macros to the compiler for main.c
- 2) I can vaguely read makefiles, but I really don't know enough to make
- the necessary changes myself. Sorry. Note: main.c ALWAYS needs to be
- compiled with the options -DDEFAULT_SKELETON_FILE=\"flex.skl\" (you could
- put a directory path if you don't want to keep flex.skl in the same
- directory as flex.exe, such as c:\utils\flex.skl) and -DSHORT_FILE_NAMES (this
- changes the output of flex from lex.yy.c to lexyy.c). It is particularly
- annoying that you have to read main.c to discover the need for
- -DSHORT_FILE_NAMES. The makefile doesn't even hint at it. Please note: as
- stated before, output from flex is lexyy.c and despite what the manuals say,
- you DO NOT need to link in a library when compiling lexyy.c. lexyy.c is
- compilable on its own. I don't have very many test files, but everything
- I tested produced a lexyy.c that compiled with no problems under Microsoft C
- 6.0 and of course GCC. I get the impression that previous ports of flex
- to DOS required lots of hacking as they were compiled under Microsoft C.
- I also believe there were some limits in previous versions of flex for DOS.
- Hopefully, this version will prove more useful.
- You probably should not contact me for bug reports or suggestions. All
- I did was get this to run under DOS- I didn't write it. The original author
- of flex is Vern Paxson. He can be reached for comments and suggestions at:
- vern@cs.cornell.edu
- decvax!cornell!vern
-
- Vern Paxson
- CS Department
- 4126 Upson Hall
- Cornell University
- Ithaca, NY 14853-7501
-
- CUL8R,
- Jason Shumate
- jshumate@wrdis01.af.mil - or - jshumate@wrdis01.wr.aflc.af.mil
-
-
-