home *** CD-ROM | disk | FTP | other *** search
- Some notes on the MSDOS, Microsoft 5.0 C version:
-
- Read the original README first.
-
- The original UNIX source has been left intact with the exception
- of the addition of #defines and changing some of the file names
- to be DOS compatible.
-
- All the additional definitions are set off by #ifdef MSDOS or
- #ifndef MSDOS. Further, there are also conditional definition
- blocks for M_I86SM and M_I86LM for small or large model MSC 5.0
- compilation. See flexdef.h, where most of this is done.
-
- Also, note that under MSC 5.0, "SV" must be defined.
-
- You will need access to a UNIX compatible yacc to create the
- parse file from parse.y.
-
- The renamed files are:
-
- Original Comment New
-
- scan.c.dist pre-flex'd version of scan.l scan.ccc
- flex.skel flex.skl
- flex.fastskel flex.fst
- flexskelcom.h skeleton scanner sources fskelcom.h
- flexskeldef.h fskeldef.h
- fastskeldef.h fastskel.h
-
- Also, the flex default output file name, as with lex, is lex.yy.c.
- The DOS version will create lexyy.c as a default.
-
- I've included a compiled, Small Model version. It looks for flex.skl
- or flex.fst in C:\lib.
-
- Compiling under MSC 5.0:
-
- See flexdef.h for comments about the definitions. Feel free to
- experiment with sizes.
-
- A note on MAKEFILE.DOS: This is not in the form the MSC make expects.
- I use a make that is closer to the UNIX/XENIX make. Sorry about that.
-
- Copy scan.ccc to scan.c. Run parse.y through a yacc of some sort.
- Compile everything (I know small model works, by the way) and
- link. With the resulting flex.exe, enter:
-
- flex -ist scan.l > anyname.c
-
- If all's right with the world, scan.ccc and anyname.c should be
- identical.
-
- Final Note:
-
- * * THANK YOU, VERN PAXSON! * *
-
- ------------------
-
- Robert A. Wissner
- Dynasoft Data Systems
- CIS 70255,231
-
- ------------------
-
- Turbo C, Zortech notes:
-
- This version has been modified to compile with Turbo C, or Zortech C.
- I have example code which illustrates the use of FLEX in a C++ environment.
- This requires tweaking a couple of header files and so forth. If you don't
- want to do this yourself, contact Tim Capps on CIS [76347,35]. An example
- COM.ZIP was uploaded at the same time as this archive which contains tweaked
- files and instructions.
-
- Happy parsing,
-
- Tim
-