圖書標籤: 編譯原理 編譯器 ANTLR compiler 編程 計算機 程序設計 programming
发表于2025-02-22
Language Implementation Patterns pdf epub mobi txt 電子書 下載 2025
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.
Terence Parr是美國舊金山大學的計算機教授、研究生導師,他一直緻力於從事ANTLR項目(antlr.org)和模闆引擎(stringtemplate.org)的設計和開發工作。Terence曾擔任IBM、洛剋希德馬丁、NeXT、雷諾汽車等公司的技術顧問,另著有《ANTLR權威指南》。
不如《編譯原理》深入,但是一堆模式也不夠淺顯。總之給有目的的人選閱吧
評分所有程序員都在編寫領域語言,隻是在選擇編寫領域語言的基礎工具不同。Domain language是我在一本講開發模式書中提到的,現在再迴想下果然是涵蓋廣泛啊。其實所有工作都是在某個領域用某類工具完成某些任務。
評分書很好讀,內容太少。
評分感覺可以歸入應用類書籍,即是教會你如何去用,至於怎麼用和為什麼要這麼用則不屬於這本書的範疇.總地來說,就是一本工程味道濃重的書.
評分..不應該是讀過瞭嗎- -
最近比较关注Programming Language Processor方面的书,有大部头深入浅出的龙书,也有精辟的Model Checking,不过真要落到实处,还是需要从一行行代码开始写起。软件理论大多晦涩,现有的一些工具实现方式大多古老(比如SPIN是YACC+C,图形上使用的tk/tcl),要开源或者产品化...
評分自从2001年开始迷上编译原理,这么多年以来一直断断续续地学习,却一直处于半懂不懂且缺乏实践的尴尬境地,以至于都要引以为平生一憾了。 昨晚看过本书前两章,感觉作者有两点做得好:一是首先建立大局观,不一上来就陷入细枝末节,这样比较容易入门;二是追求实用性,...
評分这本书,提供了cookbook式的编写小型编译器的各种模式; 这本书,也提供了编写GPPL(大型语言编译器)的基础知识(比如有些小型编译器用不到的符号表); 对于在非AT&T工作的low逼程序员的生活中,文件解析,lint程序,transpile程序,绝对要比深入gcc,g++要更亲切,而这本书...
評分这本书最嚣张的软文肯定不是我写的,翻开此书,我们摘录前两段: “别看那些编译原理的书了!这本书教你编写真正实用的解析器、翻译器、解释器等语言应用,⋯⋯” 这个⋯⋯这位是 Python 语言的发明人,著名的龟叔(Guido Van Rossum)。 “我的龙书被打入冷宫了!” ...
評分前两天去图书馆转悠,看到了这本书,还蛮新的就带回宿舍了。 说起来这是第一次看有关实现一门语言的书。龙书这样的大部头当然就更没有看过了,不敢贸然比较。 这本书给我的感觉是,作者始终站在一个较高的层面来看待语言的实现,全书讲解了数十个模式,但并未陷入到复杂的代...
Language Implementation Patterns pdf epub mobi txt 電子書 下載 2025