UNIX-comp

所属分类:编译器/解释器
开发工具:C++
文件大小:24KB
下载次数:28
上传日期:2006-11-29 19:44:55
上 传 者richming99
说明:  一个简化的编译器,出自美国编译领域的大师劳顿之手,在UNIX/LINUX环境下实现,适合初学者进行分析
(a simplified compiler, the United States compiled from the master Lawton hand, UNIX/LINUX environment realized, the analysis for beginners)

文件列表:
UNIX-comp\analyze.c (4293, 1998-08-01)
UNIX-comp\analyze.h (631, 1998-08-01)
UNIX-comp\cgen.c (6759, 1998-08-01)
UNIX-comp\cgen.h (660, 1998-08-01)
UNIX-comp\code.c (2942, 1998-08-01)
UNIX-comp\code.h (2148, 1998-08-01)
UNIX-comp\globals.h (2851, 1998-08-01)
UNIX-comp\lex\tiny.l (1920, 1998-08-01)
UNIX-comp\main.c (2433, 1998-08-01)
UNIX-comp\Makefile (862, 1998-02-04)
UNIX-comp\parse.c (4958, 1998-08-01)
UNIX-comp\parse.h (468, 1998-08-01)
UNIX-comp\sample.tm (878, 1998-08-01)
UNIX-comp\sample.tny (250, 1997-02-02)
UNIX-comp\scan.c (5530, 1999-08-05)
UNIX-comp\scan.h (637, 1998-08-01)
UNIX-comp\symtab.c (3442, 1998-08-01)
UNIX-comp\symtab.h (929, 1998-08-01)
UNIX-comp\tm.c (16167, 1998-08-01)
UNIX-comp\util.c (4671, 1998-08-01)
UNIX-comp\util.h (1001, 1998-08-01)
UNIX-comp\yacc\globals.h (3218, 1997-02-02)
UNIX-comp\yacc\tiny.y (4998, 1997-02-02)
UNIX-comp\lex (0, 2006-11-29)
UNIX-comp\yacc (0, 2006-11-29)
UNIX-comp (0, 2006-11-29)

This is the readme.unx file included in the loucomp.tar.Z 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.unx): 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) A Makefile for the TINY compiler and TM simulator for the gnu make utility (with minor edits this should work for other Unix make versions). There are also two subdirectories: lex and yacc. 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 Gnu C compiler and the Sun Ansi C compiler (version 2.0), as well as with the Borland 3.0 and 4.0 compilers. 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.

近期下载者

相关文件


收藏者