Buy new:
-46% $16.23
Delivery Tuesday, October 15
Ships from: Amazon
Sold by: Agarta USA
$16.23 with 46 percent savings
List Price: $29.95
The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE International Returns
No Import Fees Deposit & $13.36 Shipping to Austria Details

Shipping & Fee Details

Price $16.23
AmazonGlobal Shipping $13.36
Estimated Import Fees Deposit $0.00
Total $29.59

Delivery Tuesday, October 15. Order within 21 hrs 6 mins
Or fastest delivery Monday, October 7
Only 1 left in stock - order soon.
$$16.23 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$16.23
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon
Ships from
Amazon
Sold by
Sold by
Returns
30-day refund/replacement
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$7.98
FREE International Returns
Delivery October 14 - 25
Or fastest delivery October 9 - 15
Only 1 left in stock - order soon.
$$16.23 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$16.23
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Other sellers on Amazon
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

lex & yacc Second Edition

4.3 4.3 out of 5 stars 54 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$16.23","priceAmount":16.23,"currencySymbol":"$","integerValue":"16","decimalSeparator":".","fractionalValue":"23","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"kYlJ0RbzeWvoZoy6xMubMuQJ%2BlPQmR0sUbkL84t1JoCyBD1NQToSe1iAztbEXnw15YLFGYROl%2BeM7rdZeh%2FUP7G%2FR4oJDzhh0eEf%2FPcbAzA72ony3qEnm%2BOgYbKXvOooNYqBjwfcsO224T11Q6Z38wbn4t%2FyPhAQb7Jl%2BcocE2JeNPgQnMc4x5eDrXHZC00m","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$7.98","priceAmount":7.98,"currencySymbol":"$","integerValue":"7","decimalSeparator":".","fractionalValue":"98","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"kYlJ0RbzeWvoZoy6xMubMuQJ%2BlPQmR0sp0OKKxRJlP%2FOXG%2F3WfOKZpch6u53s%2B%2F6Tufc1Jz6h8YLY%2Bon8irRYHK60p%2B%2FX14jEa31R%2FBGdNOPqJHlf7%2FE%2BvKwnhV1VEO6%2FmTrjlMrYs%2FupnOm0YGaj6s3DHBboDEzhrUSBxB%2B44C0zXCGvzGNxGCP6iquCtOK","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

This book shows you how to use two Unix utilities, lex andyacc, 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 andyacc, and Abraxas PCYACC

Frequently bought together

This item: lex & yacc
$16.23
Get it as soon as Tuesday, Oct 15
Only 1 left in stock - order soon.
Sold by Agarta USA and ships from Amazon Fulfillment.
+
$22.99
Only 14 left in stock (more on the way).
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
spCSRF_Treatment
One of these items ships sooner than the other.
Choose items to buy together.

Editorial Reviews

From the Publisher

This book shows programmers how to use two UNIX utilities, lex and yacc, in program development. lex and yacc are tools that 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

About the Author

Gregory Satir helps develop online publishing tools in the Portland, Oregon, office of Electronic Book Technologies. He graduated with a B.S. in computer science from Brown University. Doug Brown is a consultant/contractor in Beaverton, Oregon. He has been developing software for circuit simulation, synthesis, and testing since 1977. Doug coauthored lex & yacc, another O'Reilly & Associates Nutshell Handbook. He received an M.S. in electrical engineering from the University of Illinois at Urbana-Champaign in 1976.

John R. Levine writes, lectures, and consults on Unix and compiler topics. He moderates the online comp.compilers discussion group at Usenet. He worked on Unix versions Lotus 1-2-3 and the Norton Utilities and was one of the architects of AIX for the IBM RT PC. He received a Ph.D in computer science from Yale in 1984.

Tony Mason is currently a member of the AFS development team at Transarc Corporation, a small start-up company specializing in distributed systems software. Previously, he worked with the Distributed Systems Group at Stanford University in the area of distributed operating systems and data communications. He received a B.S. in mathematics from the University of Chicago in 1987.

Product details

  • Publisher ‏ : ‎ O'Reilly Media; Second edition (October 11, 1992)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 388 pages
  • ISBN-10 ‏ : ‎ 1565920007
  • ISBN-13 ‏ : ‎ 978-1565920002
  • Item Weight ‏ : ‎ 1.16 pounds
  • Dimensions ‏ : ‎ 6 x 0.95 x 9 inches
  • Customer Reviews:
    4.3 4.3 out of 5 stars 54 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Paul Levine
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

4.3 out of 5 stars
54 global ratings

Top reviews from the United States

Reviewed in the United States on May 16, 2017
A classic book
Reviewed in the United States on November 7, 2015
I like this book because it covered parsing and tokenizing from a deeper standpoint. Will re-read a few more times.
Reviewed in the United States on November 10, 2015
Classic book.
Reviewed in the United States on June 25, 2006
Yacc (yet another compiler compiler) and its companion lex (lexical analyzer) are primarily intended to allow quick and easy development of small special-purpose languages. The common mistake is assuming that they are only useful for creating compilers for massively complex eccentric languages. This is not the case, though you could no doubt use them for such a purpose.

Lex and Yacc are commonly used together. Yacc uses a formal grammar to parse an input stream, something which lex cannot do using simple regular expressions since lex is limited to simple finite state automata. However, yacc cannot read from a simple input stream - it requires a series of tokens. Lex is often used to provide yacc with these tokens. As a result, building an application in lex and yacc is often used as an exercise in classes on programming languages and the theory of computation to demonstrate key concepts.

The book starts out building a simple character-driven calculator, and then moves on to build a menu generation language that produces C code that uses the standard "curses" library to draw menus on the screen. The final application is a SQL parser which includes a quick overview of both relational databases and SQL. Some readers will dislike the fact that Lex and Yacc are only capable of generating C code. Thus, the logical conclusion is that you must be able to write C code in order to use these tools. While it would be nice if the sections about the menu generation language and the SQL parser had some information about how to do typechecking and other such things, this book is not about writing a compiler/interpreter using Lex & Yacc. Rather it is just a beginner's guide.

The sections about shift/reduce and reduce/reduce conflicts are especially helpful, as are the sections going over the differences and caveats relating to the major versions of lex and yacc such as AT&T's Lex & YACC, GNU's Flex & Bison, and Berkeley's Yacc. In summary, if you've never used lex or yacc before and think they might be useful tools for you, and you already know the C programming language, this is a handy book to have.
5 people found this helpful
Report
Reviewed in the United States on April 26, 2004
To keep it simple, the book "Introduction to Compiler Construction in UNIX" introduces and explains LEX/YACC far better than this book. It uses a more realistic example and shows the error handling in more detail. This book is ok for a quick intro, but for a 'real" user, refer to the book I mentioned above.
27 people found this helpful
Report
Reviewed in the United States on March 26, 2013
Very nice but hang on, because it is tough business. On another hand, if you want to build a compiler...
Reviewed in the United States on October 21, 2007
This item is a definite must for coursework dealing with scanning and parsing. I thought that I would be fine if I just relied on web sources to assist me in Lex assignments, but as a deadline approached and I still had no results I turned to this book. The content is clear, concise, and absolutely fantastic. If you want to know how to work with Lex and Yacc, this is the book you need.
3 people found this helpful
Report
Reviewed in the United States on April 22, 2004
Like many O'Reilly books, this is really just an introduction to
something that is hard to get intorduced to. The book is not a
definitive guide, but a definitive guide has no starting point.
After reading this book, you should be able to construct some
simple scanners with lex/flex and parsers with yacc/bison, but
more importantly, you should be able to read more definitive
documentation.
4 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Cunico Enrica
5.0 out of 5 stars Libro assolutamente da avere
Reviewed in Italy on January 21, 2015
Mi sono imbattuto in questi due tool linux durante i miei studi e questo libro mi ha dato una grossa mano a capirne meglio il funzionamento. Consigliatissimo, ben scritto e ricco di esempi pratici
M. Friedl
5.0 out of 5 stars It's all about languages...
Reviewed in Germany on January 8, 2014
First of all I would like to put a focus on the general appearance - unlike many other ebooks this digital edition displays passages containing source code or graphics clearly, with a good contrast and excellent readability. Good layout job by O'Reilly.
Lex and yacc are powerful tools for software engineers, providing efficient ways for parsing source code (and lyric works, if you write any...)
On the other hand, versatility goes along with complexity. Doug Brown understands how to systematically dissect the field into consecutive steps, each accompanied by well chosen examples, leading the reader safely through the jungle of regular expressions, EBNF, symbol tables, grammars and tokens. This book is a good refresher for experienced software developers but a beginner should be aware that the study of the art of compiler construction is inevitable to fully deploy the massive amount of knowledge packed up in this book. Surely not a bedside reading, as you feel the urge to hack in the lines of the examples and see what they do. Considering the mature state of both tools I was not sure if this edition was a good choice - now I am glad to own it.
Ghislain Foulquier
5.0 out of 5 stars Tres bien
Reviewed in France on March 17, 2013
Le livre (d'occasion) est en tres bon etat comme il était annonce.
C'est un livre technique, connu pour son haut niveau, une sorte de
bible pour les specialistes, j'en avais besoin et ait été content de
le trouver chez amazon.
Sergio Slobodrian
4.0 out of 5 stars Gold mine of tips for using these tools.
Reviewed in Canada on February 25, 2018
There are lots of good tips here. I've been using Lex and Yacc for 20 years and there are lots of good tips that make your lex/yacc more useful. The menu example is really dated though and could stand a refresh thus the 4 stars.
Poupougne
4.0 out of 5 stars Livre de référence
Reviewed in France on January 5, 2014
Pour comprendre et appréhender les principes des analyses lexicales, syntaxiques et sémantiques, le livre idéal. Même pour le faire autrement qu'avec lex/yacc, car cela permet d'apprendre les principes.