The Definitive ANTLR Reference: Building Domain-Specific Languages
暫譯: 權威ANTLR參考:構建領域特定語言
Terence Parr
- 出版商: Pragmatic Bookshelf
- 出版日期: 2007-05-27
- 售價: $1,560
- 貴賓價: 9.5 折 $1,482
- 語言: 英文
- 頁數: 376
- 裝訂: Paperback
- ISBN: 0978739256
- ISBN-13: 9780978739256
-
相關分類:
Compiler
已過版
買這商品的人也買了...
-
$1,260$1,197 -
$600$510 -
$490$382 -
$350$277 -
$880$695 -
$780$741 -
$650$507 -
$550$468 -
$980$774 -
$1,200$1,176 -
$450UNIX: Visual QuickStart Guide, 3/e (Paperback)
-
$420$412 -
$620$490 -
$990$891 -
$580$452 -
$580$551 -
$490$323 -
$650$199 -
$750$593 -
$680$537 -
$600$480 -
$2,400$2,280 -
$380$300 -
$1,144Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages (Paperback)
-
$680$537
相關主題
商品描述
Description
ANTLR v3 is the most powerful, easy-to-use parser generator
built to date, and represents the culmination of more than
15 years of research by Terence Parr. This book is the
essential reference guide to using this completely rebuilt
version of ANTLR, with its amazing new LL(*) parsing
technology, tree construction facilities, StringTemplate
code generation template engine, and sophisticated
ANTLRWorks GUI development environment. Learn to use ANTLR
directly from the author!
ANTLR is a parser generator-a program that generates code to
translate a specified input language into a nice, tidy data
structure. You might think that parser generators are only
used to build compilers. But in fact, programmers usually
use parser generators to build translators and interpreters
for domain-specific languages such as proprietary data
formats, common network protocols, text processing
languages, and domain-specific programming languages.
Domain-specific languages are important to software
development because they represent a more natural, high
fidelity, robust, and maintainable means of encoding a
problem than simply writing software in a general-purpose
language. For example, NASA uses domain-specific command
languages for space missions to improve reliability, reduce
risk, reduce cost, and increase the speed of development.
Even the first Apollo guidance control computer from the
1960s used a domain-specific language that supported vector
computations.
This book is the definitive guide to using the completely
rebuilt ANTLR v3 and describes all features in detail,
including the amazing new LL(*) parsing technology, tree
construction facilities, StringTemplate code generation
template engine, and sophisticated ANTLRWorks GUI
development environment. You'll learn all about ANTLR
grammar syntax, resolving grammar ambiguities, parser fault
tolerance and error reporting, embedding actions to
interpret or translate languages, building intermediate-form
trees, extracting information from trees, generating source
code, and how to use the ANTLR Java API.
商品描述(中文翻譯)
**描述**
ANTLR v3 是迄今為止最強大且易於使用的解析器生成器,代表了 Terence Parr 超過 15 年研究的結晶。本書是使用這個完全重建版本的 ANTLR 的基本參考指南,擁有令人驚豔的新 LL(*) 解析技術、樹結構建設功能、StringTemplate 代碼生成模板引擎,以及複雜的 ANTLRWorks GUI 開發環境。直接向作者學習如何使用 ANTLR!
ANTLR 是一個解析器生成器——一個生成代碼以將指定的輸入語言轉換為整齊數據結構的程序。你可能會認為解析器生成器僅用於構建編譯器。但事實上,程序員通常使用解析器生成器來構建翻譯器和解釋器,用於特定領域的語言,例如專有數據格式、常見網絡協議、文本處理語言和特定領域的編程語言。
特定領域的語言對於軟體開發非常重要,因為它們代表了一種比單純使用通用語言編寫軟體更自然、高保真、穩健且可維護的問題編碼方式。例如,NASA 在太空任務中使用特定領域的命令語言,以提高可靠性、降低風險、減少成本並加快開發速度。甚至1960年代的第一台阿波羅導航控制計算機也使用了一種支持向量計算的特定領域語言。
本書是使用完全重建的 ANTLR v3 的權威指南,詳細描述了所有功能,包括令人驚豔的新 LL(*) 解析技術、樹結構建設功能、StringTemplate 代碼生成模板引擎,以及複雜的 ANTLRWorks GUI 開發環境。你將學習 ANTLR 語法、解決語法歧義、解析器容錯和錯誤報告、嵌入動作以解釋或翻譯語言、構建中間形式樹、從樹中提取信息、生成源代碼,以及如何使用 ANTLR Java API。