If you need to parse or process text data in Linux or Unix, this classic book explains how to use flex and bison to solve your problems quickly -- whether you're interpreting code, configuration files, or any other structured format.
flex & bison is the long-awaited sequel to the classic O'Reilly book, lex & yacc. In the nearly two decades since that book was published, the flex and bison utilities have proven to be more reliable and more powerful than the original Unix tools. This book covers the same core functionality vital to Linux and Unix program development, along with several important new topics.
This thoroughly updated edition will help you:
Address syntax crunching that regular expressions tools can't handle
Build compilers and interpreters, and handle a wide range of text processing functions
Learn key programming techniques, including syntax trees and symbol tables
Implement a full SQL grammar, with complete sample code
Use new features such as pure (reentrant) lexers and parsers, powerful GLR parsers, and interfaces to C++
This book includes revised tutorial sections for novice users and reference sections for advanced users, with chapters that explain each utility's basic usage and simple, stand-alone applications. Dive into flex & bison and discover the wide range of uses these flexible tools provide.
0 有用 rockins 2011-05-25 11:57:45
读完了前三章,有了一个大概的了解,尚可。编译方面的理论知识欠缺太多,其余章节先搁下,以后补上了编译理论知识再看
0 有用 senjing 2014-02-10 11:19:34
打造作品:http://zuojie.github.io/2013/12/15/%E4%BD%BF%E7%94%A8Flex%E5%88%B6%E4%BD%9C%E6%9F%A5%E7%9C%8B%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E9%93%BE%E7%9A%84%E5%B7%A5%E5%85%B7.html
0 有用 面团团 2018-02-23 21:38:33
算是教辅书吧,不错的入门书,例子讲得挺详细的。
0 有用 fightlion 2021-01-29 10:52:56
还是不太好理解,里面涉及了不少比较高级的flex和bison用法,对于flex&bison不是很熟悉的建议直接去读gun bison官方文档,比这本书好理解很多
0 有用 Léon 2011-08-28 14:57:24
看完这本之后再去看编译器构造(词法+语法)之类的就很好理解了。