home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compcomp / flex237 / readme.dos < prev   
Encoding:
Text File  |  1991-11-07  |  3.5 KB  |  64 lines

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