Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages (Paperback)
Terence Parr
- 出版商: Pragmatic Bookshelf
- 出版日期: 2010-02-09
- 定價: $1,300
- 售價: 9.5 折 $1,235
- 語言: 英文
- 頁數: 374
- 裝訂: Paperback
- ISBN: 193435645X
- ISBN-13: 9781934356456
-
相關分類:
Compiler、Java 程式語言、Design Pattern
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$1,600$1,520 -
$550$435 -
$880$695 -
$880$581 -
$1,520$1,444 -
$990$891 -
$520$442 -
$1,488C++ GUI Programming with Qt 4, 2/e (Hardcover)
-
$980$774 -
$620$527 -
$780$616 -
$750$638 -
$820$648 -
$580$493 -
$480$374 -
$530$419 -
$890$757 -
$520$416 -
$490$417 -
$850$723 -
$490$382 -
$600$510 -
$620$527 -
$2,090$1,980 -
$520$406
相關主題
商品描述
Knowing how to create domain-specific languages (DSLs) can give you a huge productivity boost. Instead of writing code in a general-purpose programming language, you can first build a custom language tailored to make you efficient in a particular domain.
The key is understanding the common patterns found across language implementations. Language Design Patterns identifies and condenses the most common design patterns, providing sample implementations of each.
The pattern implementations use Java, but the patterns themselves are completely general. Some of the implementations use the well-known ANTLR parser generator, so readers will find this book an excellent source of ANTLR examples as well. But this book will benefit anyone interested in implementing languages, regardless of their tool of choice. Other language implementation books focus on compilers, which you rarely need in your daily life. Instead, Language Design Patterns shows you patterns you can use for all kinds of language applications.
You'll learn to create configuration file readers, data readers, model-driven code generators, source-to-source translators, source analyzers, and interpreters. Each chapter groups related design patterns and, in each pattern, you'll get hands-on experience by building a complete sample implementation. By the time you finish the book, you'll know how to solve most common language implementation problems.
商品描述(中文翻譯)
懂得如何創建特定領域語言(DSL)可以大大提高您的生產力。您可以先建立一個定制的語言,以提高在特定領域中的效率,而不是在通用編程語言中編寫代碼。
關鍵在於理解語言實現中常見的模式。《語言設計模式》確定並縮短了最常見的設計模式,並提供了每個模式的示例實現。
這些模式的實現使用Java,但模式本身是完全通用的。一些實現使用著名的ANTLR解析器生成器,因此讀者將發現本書是ANTLR示例的優秀來源。但是,無論您選擇的工具是什麼,這本書都將對任何有興趣實現語言的人有所裨益。其他語言實現書籍專注於編譯器,而這在您的日常生活中很少需要。相反,《語言設計模式》向您展示了可以用於各種語言應用的模式。
您將學習創建配置文件讀取器、數據讀取器、模型驅動代碼生成器、源到源轉換器、源分析器和解釋器。每章將相關的設計模式分組,並在每個模式中,您將通過構建完整的示例實現來獲得實踐經驗。通過閱讀本書,您將學會解決大多數常見的語言實現問題。