home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / develope / mpwflexp.sit / README.MPW < prev    next >
Encoding:
Text File  |  1991-10-21  |  1.8 KB  |  17 lines

  1. This is (hopefully) the latest version of flex (patchlevel 7) for MPW. flex runs as an MPW tool and thus can easily be used in makefiles. It is definitely NOT Mac-friendly, but it runs and that's all I really need it to do. flex is NOT copylefted, and you can do anything you want to it provided you follow the (generous) copyright restrictions.
  2.  
  3. This port needed a fix in  "misc.c" to include the proper header files <types.h> and <time.h>, and a hack in the distributed "scan.c" in one of the tables since the &%@# MPW C swaps the definition for '\n' and '\r'. Admittedly this is not a problem for most code, but flex-generated tables need them to be 10 and 13. Still, it works now, and the "scan.c" in this archive was generated using the MPW flex. A working "flex.make" is also included.
  4.  
  5. You should also get the byacc package I ported to MPW if you want to rebuild the yacc output files "parser.c" and "parser.h". I have included these files, so you can still recompile flex without yacc if you wish.
  6.  
  7. flex wants "flex.skel" to be in the one place it looks for it. The "flex" MWP tool included in the archive expects to find it in current working MPW directory. You can edit "flex.make" and use the "-d" option to point it to another location. A sample definition is commented out in flex.make.
  8.  
  9. Once you build flex the way you want, just put "flex" into the Tools folder in your MPW Folder, and put flex.skel where your flex expects it, and you're off! I have included a flex that I built using "-model far", so it will need at least a 68020 to run. Getting it to run in a 32k data space could be tricky.
  10.  
  11. I did get it ported to Think C once, but this required more hacking than MPW, and there's already a TC version of flex available.
  12.  
  13. Support or warrantee promises are neither expressed nor implied.
  14.  
  15.  
  16.         -- Parag Patel <parag@sde.hp.com> (20 Oct 1991)
  17.