书籍 Language Implementation Patterns的封面

Language Implementation Patterns

Terence Parr

出版时间

2010-01-09

ISBN

9781934356456

评分

★★★★★

标签

算法

书籍介绍

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.

用户评论
非常优秀,但是还不至于说可以扔掉龙书。本书重在勾勒实现思路与提炼实现模式,但缺乏理论与原理的指导。想单凭这本书来掌握编译技术是不现实的。
徐徐读完。入门书。
断断续续看完,正如书名所说 「patterns」介绍了一些实现 pattern 以及优缺点,本书例子用的是 java + ANTLR, 逐步介绍了 Lexer, Parser, Semantic Analyze, Interpreter 的实现,总的是来说适合入门了解
ANTLR&Stringtemplate的作者写的,越过编译界最难的语义解析及代码优化,真正做到了深入浅出,非常了不起!Start,2015年2月25日。唉,难以接受的结果。Done,2015年6月8日.
感觉可以归入应用类书籍,即是教会你如何去用,至于怎么用和为什么要这么用则不属于这本书的范畴.总地来说,就是一本工程味道浓重的书.
例子是用Java的某py库实现的,列举的样例有点过时,多是修饰语言
绝对实用,感觉入门了😃
翻阅评论结论:中文版翻译可读 未读完