The Definitive ANTLR 4 Reference, 2/e (Paperback)
暫譯: 權威的 ANTLR 4 參考手冊,第 2 版 (平裝本)
Terence Parr
- 出版商: Pragmatic Bookshelf
- 出版日期: 2013-02-19
- 售價: $1,260
- 貴賓價: 9.5 折 $1,197
- 語言: 英文
- 頁數: 328
- 裝訂: Paperback
- ISBN: 1934356999
- ISBN-13: 9781934356999
-
相關分類:
Compiler
-
相關翻譯:
ANTLR4 權威指南 (The Definitive ANTLR 4 Reference, 2/e) (簡中版)
立即出貨 (庫存=1)
買這商品的人也買了...
-
$620$527 -
$590$502 -
$520$411 -
$534$507 -
$680$537 -
$580$458 -
$580$458 -
$780$616 -
$1,000$700 -
$580$458 -
$680$537 -
$580$452 -
$480$379 -
$1,130$893 -
$480$379 -
$880$686 -
$450$356 -
$380$199 -
$580$452 -
$360$281 -
$690$538 -
$500$450 -
$360$284 -
$650$514 -
$580$458
商品描述
Programmers run into parsing problems all the time. Whether it's a data format like JSON, a network protocol like SMTP, a server configuration file for Apache, a PostScript/PDF file, or a simple spreadsheet macro language--ANTLR v4 and this book will demystify the process. ANTLR v4 has been rewritten from scratch to make it easier than ever to build parsers and the language applications built on top. This completely rewritten new edition of the bestselling Definitive ANTLR Reference shows you how to take advantage of these new features.
Build your own languages with ANTLR v4, using ANTLR's new advanced parsing technology. In this book, you'll learn how ANTLR automatically builds a data structure representing the input (parse tree) and generates code that can walk the tree (visitor). You can use that combination to implement data readers, language interpreters, and translators.
You'll start by learning how to identify grammar patterns in language reference manuals and then slowly start building increasingly complex grammars. Next, you'll build applications based upon those grammars by walking the automatically generated parse trees. Then you'll tackle some nasty language problems by parsing files containing more than one language (such as XML, Java, and Javadoc). You'll also see how to take absolute control over parsing by embedding Java actions into the grammar.
You'll learn directly from well-known parsing expert Terence Parr, the ANTLR creator and project lead. You'll master ANTLR grammar construction and learn how to build language tools using the built-in parse tree visitor mechanism. The book teaches using real-world examples and shows you how to use ANTLR to build such things as a data file reader, a JSON to XML translator, an R parser, and a Java class->interface extractor. This book is your ticket to becoming a parsing guru!
What You Need:
ANTLR 4.0 and above. Java development tools. Ant build system optional (needed for building ANTLR from source)
商品描述(中文翻譯)
程式設計師經常會遇到解析問題。無論是像 JSON 這樣的資料格式、像 SMTP 這樣的網路協定、Apache 的伺服器配置檔、PostScript/PDF 檔案,或是簡單的電子表格巨集語言——ANTLR v4 和這本書將揭開這個過程的神秘面紗。ANTLR v4 已經從頭重寫,使得構建解析器和基於其上構建的語言應用變得比以往任何時候都更容易。這本暢銷書《Definitive ANTLR Reference》的全新重寫版將向您展示如何利用這些新功能。
使用 ANTLR v4 的新進階解析技術來構建您自己的語言。在這本書中,您將學習 ANTLR 如何自動構建表示輸入的資料結構(解析樹)並生成可以遍歷該樹的程式碼(訪問者)。您可以利用這種組合來實現資料讀取器、語言解釋器和翻譯器。
您將從學習如何在語言參考手冊中識別語法模式開始,然後逐漸開始構建越來越複雜的語法。接下來,您將基於這些語法構建應用程式,通過遍歷自動生成的解析樹來實現。然後,您將處理一些棘手的語言問題,解析包含多種語言的檔案(例如 XML、Java 和 Javadoc)。您還將看到如何通過將 Java 行動嵌入語法中來完全控制解析。
您將直接向著名的解析專家 Terence Parr 學習,他是 ANTLR 的創建者和專案負責人。您將掌握 ANTLR 語法構建,並學習如何使用內建的解析樹訪問者機制來構建語言工具。這本書使用真實世界的範例教學,並向您展示如何使用 ANTLR 構建資料檔案讀取器、JSON 到 XML 的翻譯器、R 解析器和 Java 類別到介面的提取器。這本書是您成為解析大師的入場券!
您需要的工具:
ANTLR 4.0 及以上版本。Java 開發工具。Ant 建構系統(可選,構建 ANTLR 源碼時需要)。