flex & bison: Text Processing Tools (Paperback)

John Levine

  • 出版商: O'Reilly
  • 出版日期: 2009-09-22
  • 定價: $1,100
  • 售價: 9.5$1,045
  • 語言: 英文
  • 頁數: 292
  • 裝訂: Paperback
  • ISBN: 0596155972
  • ISBN-13: 9780596155971
  • 相關分類: Linux
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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++

商品描述(中文翻譯)

如果您需要在Linux或Unix中解析或處理文本數據,這本實用的書籍將解釋如何使用flex和bison快速解決您的問題。《flex & bison》是經典O'Reilly書籍《lex & yacc》的期待已久的續集。在原書出版近二十年的時間裡,flex和bison工具已被證明比原始的Unix工具更可靠且功能更強大。

《flex & bison》涵蓋了對於Linux和Unix程序開發至關重要的核心功能,以及幾個重要的新主題。您將找到針對初學者的修訂教程和高級用戶的參考資料,以及對每個工具的基本用法和您可以使用它們創建的簡單獨立應用程序的解釋。通過《flex & bison》,您將發現這些靈活工具提供的廣泛用途。

本書涵蓋以下內容:
- 處理正則表達式工具無法處理的語法壓縮
- 構建編譯器和解釋器,處理各種文本處理功能
- 解釋代碼、配置文件或任何其他結構化格式
- 學習關鍵的編程技術,包括抽象語法樹和符號表
- 實現完整的SQL語法,並附有完整的示例代碼
- 使用新功能,如純(可重入)的語法分析器和解析器、強大的GLR解析器以及與C++的接口