Jump to ratings and reviews
Rate this book

lex & yacc

Rate this book
This book shows you how to use two Unix utilities, lex and yacc, in program development. These tools help programmers build compilers and interpreters, but they also have a wider range of applications. The second edition contains completely revised tutorial sections for novice users and reference sections for advanced users. This edition is twice the size of the first and has an expanded index. The following material has been added: Each utility is explained in a chapter that covers basic usage and simple, stand-alone applications How to implement a full SQL grammar, with full sample code Major MS-DOS and Unix versions of lex and yacc are explored in depth, including AT&T lex and yacc, Berkeley yacc, Berkeley/GNU Flex, GNU Bison, MKS lex and yacc, and Abraxas PCYACC

459 pages, Kindle Edition

First published May 1, 1990

16 people are currently reading
243 people want to read

About the author

John R. Levine

104 books8 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
26 (20%)
4 stars
53 (41%)
3 stars
31 (24%)
2 stars
15 (11%)
1 star
2 (1%)
Displaying 1 - 6 of 6 reviews
Profile Image for Bhaskar Chowdhury.
34 reviews3 followers
October 11, 2020
Re-brushed my understanding and wonderful read because of authors build crystal clear explanation. It helps also because of my familiarity with the topic. This book binds my wayward information and knowledge to perspective and solidified it.

Thank you so much for writing such easy and gulp-able meterial for ordinary mortals like us.
Profile Image for Phani Tholeti.
77 reviews12 followers
April 29, 2020
Decently written book - it covers the main tasks (of lexer and parser) in sufficient detail. More importantly it gives good references to continue studying for those interested. The code examples are where things aren't as great. While the SQL parser is easily understandable, since, even if one doesn't know sql, the bare amounts of sql required are given in the book, the same can't be said about the other example the MGL (Menu Generation Language) which assumes familiarity with curses and the whole idea of generating menus in said style seems very artificial (for lack of a better word, and figure of speech). Probably a second example of a subset of more well known languages (or those that can be explained in a single chapter) would have been great (probably something like awk/python maybe?)
Profile Image for Will.
Author 10 books33 followers
August 3, 2007
Very helpful, lots of useful examples.
Profile Image for Gabe.
35 reviews7 followers
February 20, 2009
Lex and Yacc are really powerful tools. As usual, O'Reilly delivers the goods.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.