Publisher: O'Reilly, 1990, 216 pages
ISBN: 0-937175-49-8
Keywords: Programming
lex & yacc shows C programmers how to use two UNIX utilities, lex and yacc, to solve problems in program development.
Lex and yacc were designed as tools to help programmers writing compilers and interpreters, but they have a wide range of applications. Lex, so called because it generates a lexical analyzer, reads a stream of bytes and groups them into tokens. Yacc (which stands for Yet Another Compiler-Compiler) is used to codify the grammar of a language and generates a parser. The parser examines the input tokens and groups them into syntactical units. The value of the tokens can be processed by action routines written in C.
The first part of the book provides a basic understanding of compilers and interpreters. It takes the programmer through a series of extended tutorial examples of increasing complexity.
The second part of the book is devoted to providing detailed technical information necessary for advanced uses of lex and yacc. These chapters discuss the lex and yacc options, ambiguities in a yacc grammar, and debugging.
Appendices cover Flex and GNU Bison, versions of lex and yacc available from the Free Software Foundation. A glossary and index are also provided.
A not very good introduction to Yacc and Lex.
Comments
There are currently no comments
New Comment