Dec 192017
Frontend processor generator. SLEX (s/t LEX) and SYACC (s/t YACC) combined program. New version, support linking multiple-generated-processor files into one program for both SLEX and SYACC. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
BCMAKE.BAT | 95 | 58 | deflated |
CMAKE.DOC | 1277 | 611 | deflated |
CMAKE.LEX | 1460 | 629 | deflated |
CMAKE.MAK | 459 | 186 | deflated |
CMAKE.YAC | 5148 | 1570 | deflated |
FRONTEND.DOC | 2160 | 729 | deflated |
MAIN.GEN | 756 | 330 | deflated |
ORDERFRM.TXT | 3167 | 762 | deflated |
PARSER1.GEN | 753 | 280 | deflated |
PARSER2.GEN | 7414 | 1823 | deflated |
README.BIN | 7021 | 2895 | deflated |
README.EXE | 52299 | 19755 | deflated |
SLEX.DOC | 12357 | 3973 | deflated |
SLEX.EXE | 71888 | 30719 | deflated |
SYACC.DOC | 11844 | 3781 | deflated |
SYACC.EXE | 81012 | 33830 | deflated |
SYACCLEX.GEN | 254 | 60 | deflated |
TRANSIT.GEN | 2717 | 854 | deflated |
Download File FEND20.ZIP Here
Contents of the CMAKE.DOC file
This is an example of using both SLEX and SYACC to create a simple "make"
utility program. Two files need to be prepared: First, the regular definition
file for SLEX to create a lexer. Second, the context-free grammar file for
SYACC to create a lrparser.
The following steps are used in cmake.bat to create cmake.exe:
1. "SLEX cmake.lex cmakelex.c -nm -m -c"
- Creates lexical analyzer "cmakelex.c" with case sensitive.
2. Using c compiler to compile cmakelex.c and create cmakelex.obj
3. "SYACC cmake.yac cmake.c -n -m -d"
- Creates LALR(1) parser "cmake.c" and with dump file "syacc.out".
4. Using c compiler to compile cmake.c and create cmake.obj
5. "cl cmake.c cmakelex.c"
- Creates the target executable file "cmake.exe".
Please set up MSC environment and then type "bcmake.bat" to observe above
actions in creating the "cmake.exe" file. If using other compilers, the
last line in the "bcmake.bat" has to change to the other compiler's command
of dos command line. The first two lines should remain the same.
After the "cmake.exe" file is created, type "cmake.exe cmake.mak" to exame
the "make" utility. The cmake.mak happens to be the make file that maintains
the cmake.lex and cmake.yac.
D.Chen
August-93
July-90
December 19, 2017
Add comments