Flex & Bison: Text Processing Tools

Cover
"O'Reilly Media, Inc.", 05.08.2009 - 292 Seiten

If you need to parse or process text data in Linux or Unix, this useful book explains how to use flex and bison to solve your problems quickly. flex & bison is the long-awaited sequel to the classic O'Reilly book, lex & yacc. In the nearly two decades since the original book was published, the flex and bison utilities have proven to be more reliable and more powerful than the original Unix tools.

flex & bison covers the same core functionality vital to Linux and Unix program development, along with several important new topics. You'll find revised tutorials for novices and references for advanced users, as well as an explanation of each utility's basic usage and simple, standalone applications you can create with them. With flex & bison, you'll discover the wide range of uses these flexible tools offer.

  • Address syntax crunching that regular expressions tools can't handle
  • Build compilers and interpreters, and handle a wide range of text processing functions
  • Interpret code, configuration files, or any other structured format
  • Learn key programming techniques, including abstract syntax trees and symbol tables
  • Implement a full SQL grammar-with complete sample code
  • Use new features such as pure (reentrant) lexers and parsers, powerful GLR parsers, and interfaces to C++
 

Inhalt

Chapter 1 Introducing Flex and Bison
1
Chapter 2 Using Flex
19
Chapter 3 Using Bison
47
Chapter 4 Parsing SQL
81
Chapter 5 A Reference for Flex Specifications
119
Chapter 6 A Reference for Bison Specifications
141
Chapter 7 Ambiguities and Conflicts
173
Chapter 8 Error Reporting and Recovery
197
Chapter 9 Advanced Flex and Bison
209
Appendix SQL Parser Grammar and CrossReference
243
Glossary
259
Index
263
Urheberrecht

Andere Ausgaben - Alle anzeigen

Häufige Begriffe und Wortgruppen

Bibliografische Informationen