home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 5.ddi / FLEX.ZIP / README.DOS < prev    next >
Encoding:
Text File  |  1990-08-16  |  2.5 KB  |  77 lines

  1. Some notes on the MSDOS, Microsoft 5.0 C version:
  2.  
  3.     Read the original README first.
  4.  
  5.     The original UNIX source has been left intact with the exception
  6.     of the addition of #defines and changing some of the file names
  7.     to be DOS compatible.
  8.  
  9.     All the additional definitions are set off by #ifdef MSDOS or
  10.     #ifndef MSDOS.  Further, there are also conditional definition
  11.     blocks for M_I86SM and M_I86LM for small or large model MSC 5.0
  12.     compilation.  See flexdef.h, where most of this is done.
  13.  
  14.     Also, note that under MSC 5.0, "SV" must be defined.
  15.  
  16.     You will need access to a UNIX compatible yacc to create the
  17.     parse file from parse.y.
  18.  
  19. The renamed files are:
  20.  
  21.         Original           Comment                        New
  22.  
  23.     scan.c.dist    pre-flex'd version of scan.l    scan.ccc
  24.     flex.skel                                       flex.skl
  25.     flex.fastskel                                   flex.fst
  26.     flexskelcom.h    skeleton scanner sources        fskelcom.h
  27.     flexskeldef.h                                   fskeldef.h
  28.     fastskeldef.h                                   fastskel.h
  29.  
  30. Also, the flex default output file name, as with lex, is lex.yy.c.
  31. The DOS version will create lexyy.c as a default.
  32.  
  33. I've included a compiled, Small Model version.  It looks for flex.skl
  34. or flex.fst in C:\lib.
  35.  
  36. Compiling under MSC 5.0:
  37.  
  38.     See flexdef.h for comments about the definitions.  Feel free to
  39.     experiment with sizes.
  40.  
  41.     A note on MAKEFILE.DOS:  This is not in the form the MSC make expects.
  42.     I use a make that is closer to the UNIX/XENIX make.  Sorry about that.
  43.  
  44.     Copy scan.ccc to scan.c.  Run parse.y through a yacc of some sort.
  45.     Compile everything (I know small model works, by the way) and
  46.     link.  With the resulting flex.exe, enter:
  47.  
  48.     flex -ist scan.l > anyname.c
  49.  
  50.     If all's right with the world, scan.ccc and anyname.c should be
  51.     identical.
  52.  
  53. Final Note:
  54.  
  55.     * * THANK YOU,  VERN PAXSON! * *
  56.  
  57. ------------------
  58.  
  59.     Robert A. Wissner
  60.     Dynasoft Data Systems
  61.     CIS 70255,231
  62.  
  63. ------------------
  64.  
  65. Turbo C, Zortech notes:
  66.  
  67. This version has been modified to compile with Turbo C, or Zortech C.
  68. I have example code which illustrates the use of FLEX in a C++ environment.
  69. This requires tweaking a couple of header files and so forth.  If you don't
  70. want to do this yourself, contact Tim Capps on CIS [76347,35].  An example
  71. COM.ZIP was uploaded at the same time as this archive which contains tweaked
  72. files and instructions.
  73.  
  74. Happy parsing,
  75.  
  76.    Tim
  77.