Publisher: Prentice Hall, 1985, 194 pages
ISBN: 0-13-474396-2
Keywords: Programming
The authors designed this practical book as a case study of two powerful, yet easy-to-use tools in the UNIX system. They show you how to create a compiler using generators such as yacc (LALR(1) parser generator) and lex (regular expression-based lexical analyzer generator).
SampleC, a simple subset of C, is defined and used as an example of compiler development. The implementation is intended to produce less than optimal object code, and suggestions for improvements to the code and extensions to the language provide problems in several chapters.
This tutorial shows how to get a simple, easily modifiable implementation quickly and reliably. It also helps the reader to learn practical details of the components of a compiler and the interfaces between them. The book is a short exposition preceding detailed algorithm studies in compiler construction and offers a description of how to employ productively the generators described.
One of the reasons UNIX got popular was the ease with which you could create new languages with the help of lex and yacc.
Unfortunately, this is not a very good book. Avoid it.
Comments
There are currently no comments
New Comment