CompilerPrincipleAndPractic

所属分类:编译器/解释器
开发工具:Visual C++
文件大小:145KB
下载次数:20
上传日期:2010-04-14 21:00:33
上 传 者electronicmalebox
说明:  编译原理与实践书中的原代码,里面是一个关于TINY语言的编译器,包括词法分析,语法分析,语义分析,中间代码产生,及生成可执行目标代码,并可在内含的TM机上运行。是一个不错的编译方面的教材代码。
(The principle and practice books compiled code is an original, the compiler of about language, including morphology analysis, grammar, semantics, analysis, and generate code executable code and can be used in the embedded TM execution. A good textbook compilation of code.)

文件列表:
编译原理与实践原代码(下载)\SCAN.H (659, 1998-08-01)
编译原理与实践原代码(下载)\PARSE.H (484, 1998-08-01)
编译原理与实践原代码(下载)\CGEN.H (679, 1998-08-01)
编译原理与实践原代码(下载)\SAMPLE.TM (2115, 2010-01-21)
编译原理与实践原代码(下载)\YACC\TINY.Y (5161, 1997-02-01)
编译原理与实践原代码(下载)\YACC\GLOBALS.H (3338, 1997-01-31)
编译原理与实践原代码(下载)\SAMPLE.TNY (263, 1996-08-25)
编译原理与实践原代码(下载)\LEX\TINY.L (1995, 2010-01-16)
编译原理与实践原代码(下载)\TINY.EXE (40736, 1998-04-26)
编译原理与实践原代码(下载)\TM.EXE (14104, 1998-03-20)
编译原理与实践原代码(下载)\MAKEFILE (1129, 1998-02-03)
编译原理与实践原代码(下载)\ANALYZE.H (652, 1998-08-01)
编译原理与实践原代码(下载)\CODE.H (2234, 1998-08-01)
编译原理与实践原代码(下载)\SYMTAB.H (959, 1998-08-01)
编译原理与实践原代码(下载)\UTIL.H (1037, 1998-08-01)
编译原理与实践原代码(下载)\MAIN.ncb (74752, 2010-01-24)
编译原理与实践原代码(下载)\MAIN.PLG (1874, 2010-01-14)
编译原理与实践原代码(下载)\Debug\vc60.idb (41984, 2010-01-14)
编译原理与实践原代码(下载)\Debug\vc60.pdb (53248, 2010-01-14)
编译原理与实践原代码(下载)\Debug\MAIN.obj (6882, 2010-01-14)
编译原理与实践原代码(下载)\Debug\ANALYZE.obj (8929, 2010-01-14)
编译原理与实践原代码(下载)\Debug\CGEN.obj (18296, 2010-01-14)
编译原理与实践原代码(下载)\Debug\CODE.obj (7902, 2010-01-14)
编译原理与实践原代码(下载)\Debug\PARSE.obj (14027, 2010-01-14)
编译原理与实践原代码(下载)\Debug\SCAN.obj (10363, 2010-01-14)
编译原理与实践原代码(下载)\Debug\SYMTAB.obj (6249, 2010-01-14)
编译原理与实践原代码(下载)\Debug\TM.obj (35522, 2010-01-14)
编译原理与实践原代码(下载)\Debug\MAIN.pch (256616, 2010-01-14)
编译原理与实践原代码(下载)\Debug\UTIL.obj (14101, 2010-01-14)
编译原理与实践原代码(下载)\Debug\MAIN.pdb (25600, 2010-01-14)
编译原理与实践原代码(下载)\MAIN.DSP (4332, 2010-01-14)
编译原理与实践原代码(下载)\MAIN.DSW (533, 2010-01-14)
编译原理与实践原代码(下载)\MAIN.C (2496, 2010-01-16)
编译原理与实践原代码(下载)\GLOBALS.H (2904, 2010-01-16)
编译原理与实践原代码(下载)\UTIL.C (4546, 2010-01-16)
编译原理与实践原代码(下载)\SCAN.C (5004, 2010-01-16)
编译原理与实践原代码(下载)\PARSE.C (5060, 2010-01-16)
编译原理与实践原代码(下载)\SYMTAB.C (3486, 2010-01-16)
编译原理与实践原代码(下载)\ANALYZE.C (4084, 2010-01-16)
... ...

This is the README.DOS file included in the loucomp.zip file. The other files in the distribution are the source code files in standard C for the TINY compiler and Tiny Machine simulator as described in the text: Compiler Construction - Principles and Practice, by Kenneth C. Louden, PWS Publishing Co., 1997. They are (with very minor variations) all the files as listed in Appendices B and C of the text. At the top level are: The file you are now reading (README.DOS): The sixteen files as listed on page 23 of the text (which are used to make the TINY compiler) The tm.c source code file for the TM machine interpreter The TINY program of Figure 1.4, page 23 (called sample.tny) Two DOS executables tiny.exe and tm.exe for your convenience. A Makefile for the TINY compiler and TM simulator for Borland's MAKE utility (with minor edits this should work for other MAKEs). There are also two subdirectories: lex and yacc (assuming you have unzipped with the -d option). The lex subdirectory contains the single file tiny.l as described in the text on pages 90-91, which can be used to build a lex/flex version of the scanner. The yacc subdirectory contains the two files tiny.y and globals.h as described on pages 243-245 of the text, which can be used to build a Yacc/Bison version of the parser. Note that, due to the considerable variation among Yacc/Bison versions, these files will probably need some minor editing in order to get them to work correctly. All source code has been tested with the Borland 3.0 and 4.0 compilers, as well as with the Gnu C compiler and the Sun Ansi C compiler (version 2.0). Any Ansi C compiler should be usable to compile this code, but there is no guarantee that your favorite compiler will work. Nevertheless, if you have a problem, I would appreciate hearing about it, and I will respond if I can find a solution.

近期下载者

相关文件


收藏者