Terence Parr是美國舊金山大學的計算機教授、研究生導師,他一直緻力於從事ANTLR項目(antlr.org)和模闆引擎(stringtemplate.org)的設計和開發工作。Terence曾擔任IBM、洛剋希德馬丁、NeXT、雷諾汽車等公司的技術顧問,另著有《ANTLR權威指南》。
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.
最近比較關注Programming Language Processor方麵的書,有大部頭深入淺齣的龍書,也有精闢的Model Checking,不過真要落到實處,還是需要從一行行代碼開始寫起。軟件理論大多晦澀,現有的一些工具實現方式大多古老(比如SPIN是YACC+C,圖形上使用的tk/tcl),要開源或者産品化...
評分標題的觀點是關於本書的某個評價,覺得再貼切不過。這本書是野路子,不同於任何一本compiler的書,直接瞭當的描述implementation patterns(前端)。看看這本書的篇幅你就會知道,看瞭這本書,你並不會得到編譯原理相關的太多知識的。你其實仍然需要一本諸如龍書這樣的書來真正...
評分本書深入淺齣的講解瞭如何編寫語言應用,作者是ANTLR的開發者,也是Lex 和 YACC的另外JAVA實現,對語言實現需求者是一本很好的應用書,值得期待。使用 Antlr 等識彆工具來識彆,解析,構造編譯器比手工編程更加容易,同時開發的程序也更易於維護。也是現在DSL的實現方法之一。
評分這本書最囂張的軟文肯定不是我寫的,翻開此書,我們摘錄前兩段: “彆看那些編譯原理的書瞭!這本書教你編寫真正實用的解析器、翻譯器、解釋器等語言應用,⋯⋯” 這個⋯⋯這位是 Python 語言的發明人,著名的龜叔(Guido Van Rossum)。 “我的龍書被打入冷宮瞭!” ...
評分2012年4月第一版第一次印刷 P59最後一段“由於C++函數頭文件不限大小”,英文版中是“function header”應翻譯為函數頭。 P88頁中間“因此可以用前綴操作父^製定操作符詞法單元”,英文版中是”suffix“應翻譯為後綴。
ANTLR&Stringtemplate的作者寫的,越過編譯界最難的語義解析及代碼優化,真正做到瞭深入淺齣,非常瞭不起!Start,2015年2月25日。唉,難以接受的結果。Done,2015年6月8日.
评分被迫閱讀。。 不過寫的不錯 思路清晰 推薦一下
评分感覺想從另外一本ANTLR手冊中分齣來的賺稿費的,新手入門的話比龍書好讀。不過內容也就停留在70s吧。
评分不如《編譯原理》深入,但是一堆模式也不夠淺顯。總之給有目的的人選閱吧
评分翻閱評論結論:中文版翻譯可讀 未讀完
本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度,google,bing,sogou 等
© 2025 onlinetoolsland.com All Rights Reserved. 本本书屋 版权所有