FLEX 与 BISON(影印版) 2025 chm pdf kindle rb azw3 下载 115盘

FLEX 与 BISON(影印版)电子书下载地址
内容简介:
如果你需要分析或处理Linux或Unix中的文本数据,这本有用的书籍就向你讲解了如何使用flex和bison迅速解决问题。《flex与bison》被期待已久,是经典O’Reilly系列书籍《lex & yacc》的续篇。在原书出版以来的近20年中,flex和bison已被证明比原来的Unix工具更可靠、更强大。
《flex与bison》一书涵盖了Linux和Unix程序开发中相同的重要核心功能,以及一些重要的新主题。你会找到适用于新手的修订教程和适用于高级用户的参考资料,以及对每个程序的基本用法的解释,并且运用它们创建简单、独立的应用程序。有了《flex与bison》,你会发现这些灵活的工具提供的广泛用途。
书籍目录:
Preface
1. Introducing Flex and Bison
Lexical Analysis and Parsing
Regular Expressions and Scanning
Our First Flex Program
Programs in Plain Flex
Putting Flex and Bison Together
The Scanner as Coroutine
Tokens and Values
Grammars and Parsing
BNF Grammars
Bison’s Rule Input Language
Compiling Flex and Bison Programs Together
Ambiguous Grammars: Not Quite
Adding a Few More Rules
Flex and Bison vs. Handwritten Scanners and Parsers
Exercises
2. Using Flex
Regular Expressions
Regular Expression Examples
How Flex Handles Ambiguous Patterns
Context-Dependent Tokens
File I/O in Flex Scanners
Reading Several Files
The I/O Structure of a Flex Scanner
Input to a Flex Scanner
Flex Scanner Output
Start States and Nested Input Files
Symbol Tables and a Concordance Generator
Managing Symbol Tables
Using a Symbol Table
C Language Cross-Reference
Exercises
3. Using Bison
How a Bison Parser Matches Its Input
Shift/Reduce Parsing
What Bison’s LALR(1) Parser Cannot Parse
A Bison Parser
Abstract Syntax Trees
An Improved Calculator That Creates ASTs
Literal Character Tokens
Building the AST Calculator
Shift/Reduce Conflicts and Operator Precedence
When Not to Use Precedence Rules
An Advanced Calculator
Advanced Calculator Parser
Calculator Statement Syntax
Calculator Expression Syntax
Top-Level Calculator Grammar
Basic Parser Error Recovery
The Advanced Calculator Lexer
Reserved Words
Building and Interpreting ASTs
Evaluating Functions in the Calculator
User-Defined Functions
Using the Advanced Calculator
Exercises
4. Parsing SQL
A Quick Overview of SQL
Relational Databases
Manipulating Relations
Three Ways to Use SQL
SQL to RPN
The Lexer
Scanning SQL Keywords
Scanning Numbers
Scanning Operators and Punctuation
Scanning Functions and Names
Comments and Miscellany
The Parser
The Top-Level Parsing Rules
SQL Expressions
Select Statements
Delete Statement
Insert and Replace Statements
Update Statement
Create Database
Create Table
User Variables
The Parser Routines
The Makefile for the SQL Parser
Exercises
5. A Reference for Flex Specifications
Structure of a Flex Specification
Definition Section
Rules Section
User Subroutines
BEGIN
C++ Scanners
Context Sensitivity
Left Context
Right Context
Definitions (Substitutions)
ECHO
Input Management
Stdio File Chaining
Input Buffers
Input from Strings
File Nesting
input()
YY_INPUT
Flex Library
Interactive and Batch Scanners
Line Numbers and yylineno
Literal Block
Multiple Lexers in One Program
Combined Lexers
Multiple Lexers
Options When Building a Scanner
Portability of Flex Lexers
Porting Generated C Lexers
Reentrant Scanners
Extra Data for Reentrant Scanners
Access to Reentrant Scanner Data
Reentrant Scanners, Nested Files, and Multiple Scanners
Using Reentrant Scanners with Bison
Regular Expression Syntax
Metacharacters
REJECT
Returning Values from yylex()
Start States
unput()
yyinput() yyunput()
yyleng
yyless()
yylex() and YY_DECL
yymore()
yyrestart()
yy_scan_string and yy_scan_buffer
YY_USER_ACTION
yywrap()
6. A Reference for Bison Specifications
Structure of a Bison Grammar
Symbols
Definition Section
Rules Section
User Subroutines Section
Actions
Embedded Actions
Symbol Types for Embedded Actions
Ambiguity and Conflicts
Types of Conflicts
Shift/Reduce Conflicts
Reduce/Reduce Conflicts
%expect
GLR Parsers
Bugs in Bison Programs
Infinite Recursion
Interchanging Precedence
Embedded Actions
C++ Parsers
%code Blocks
End Marker
Error Token and Error Recovery
%destructor
Inherited Attributes ($0)
Symbol Types for Inherited Attributes
%initial-action
Lexical Feedback
Literal Block
Literal Tokens
Locations
%parse-param
Portability of Bison Parsers
Porting Bison Grammars
Porting Generated C Parsers
Libraries
Character Codes
Precedence and Associativity Declarations
Precedence
Associativity
Precedence Declarations
Using Precedence and Associativity to Resolve Conflicts
Typical Uses of Precedence
Recursive Rules
Left and Right Recursion
Rules
Special Characters
%start Declaration
Symbol Values
Declaring Symbol Types
Explicit Symbol Types
Tokens
Token Numbers
Token Values
%type Declaration
%union Declaration
Variant and Multiple Grammars
Combined Parsers
Multiple Parsers
Using %name-prefix or the -p Flag
Lexers for Multiple Parsers
Pure Parsers
y.output Files
Bison Library
main()
yyerror()
YYABORT
YYACCEPT
YYBACKUP
yyclearin
yydebug and YYDEBUG
YYDEBUG
yydebug
yyerrok
YYERROR
yyerror()
yyparse()
YYRECOVERING()
7. Ambiguities and Conflicts
The Pointer Model and Conflicts
Kinds of Conflicts
Parser States
Contents of name.output
Reduce/Reduce Conflicts
Shift/Reduce Conflicts
Review of Conflicts in name.output
Common Examples of Conflicts
Expression Grammars
IF/THEN/ELSE
Nested List Grammar
How Do You Fix the Conflict?
IF/THEN/ELSE (Shift/Reduce)
Loop Within a Loop (Shift/Reduce)
Expression Precedence (Shift/Reduce)
Limited Lookahead (Shift/Reduce or Reduce/Reduce)
Overlap of Alternatives (Reduce/Reduce)
Summary
Exercises
8. Error Reporting and Recovery
Error Reporting
Locations
Adding Locations to the Parser
Adding Locations to the Lexer
More Sophisticated Locations with Filenames
Error Recovery
Bison Error Recovery
Freeing Discarded Symbols
Error Recovery in Interactive Parsers
Where to Put Error Tokens
Compiler Error Recovery
Exercises
9. Advanced Flex and Bison
Pure Scanners and Parsers
Pure Scanners in Flex
Pure Parsers in Bison
Using Pure Scanners and Parsers Together
A Reentrant Calculator
GLR Parsing
GLR Version of the SQL Parser
C++ Parsers
A C++ Calculator
C++ Parser Naming
A C++ Parser
Interfacing a Scanner with a C++ Parser
Should You Write Your Parser in C++ ?
Exercises
Appendix: SQL Parser Grammar and Cross-Reference
Glossary
Index
作者介绍:
John Levine, Taughannock Networks的创始人,著有20余本技术书籍,其中包括《lex & yacc》和《qmail》,均为O’Reilly出版。
出版社信息:
暂无出版社相关信息,正在全力查找中!
书籍摘录:
暂无相关书籍摘录,正在全力查找中!
在线阅读/听书/购买/PDF下载地址:
原文赏析:
calclist: /* nothing */
| calclist exp EOL { printf("= %dn", $1); }
;
SQL strings are enclosed in single quotes, using a pair of quotes to represent a single quote in the string
Bison并不分析任何的C代码,。。。
正确使用YYBACKUP()非常困难,。。。
接受不正确的输入然后把它报告为一个错误。。。
早期的错误恢复。。。再次运行程序所需要的等待时间。。。
其它内容:
书籍介绍
如果你需要分析或处理Linux或Unix中的文本数据,这本有用的书籍就向你讲解了如何使用flex和bison迅速解决问题。《flex与bison》被期待已久,是经典O’Reilly系列书籍《lex & yacc》的续篇。在原书出版以来的近20年中,flex和bison已被证明比原来的Unix工具更可靠、更强大。
《flex与bison》一书涵盖了Linux和Unix程序开发中相同的重要核心功能,以及一些重要的新主题。你会找到适用于新手的修订教程和适用于高级用户的参考资料,以及对每个程序的基本用法的解释,并且运用它们创建简单、独立的应用程序。有了《flex与bison》,你会发现这些灵活的工具提供的广泛用途。
网站评分
书籍多样性:7分
书籍信息完全性:9分
网站更新速度:7分
使用便利性:9分
书籍清晰度:3分
书籍格式兼容性:4分
是否包含广告:5分
加载速度:7分
安全性:8分
稳定性:5分
搜索功能:3分
下载便捷性:4分
下载点评
- 博大精深(277+)
- 推荐购买(173+)
- 值得下载(351+)
- 内容完整(215+)
- 值得购买(227+)
- 四星好评(487+)
- 强烈推荐(283+)
下载评价
- 网友 相***儿:
你要的这里都能找到哦!!!
- 网友 益***琴:
好书都要花钱,如果要学习,建议买实体书;如果只是娱乐,看看这个网站,对你来说,是很好的选择。
- 网友 常***翠:
哈哈哈哈哈哈
- 网友 马***偲:
好 很好 非常好 无比的好 史上最好的
- 网友 扈***洁:
还不错啊,挺好
- 网友 国***芳:
五星好评
- 网友 索***宸:
书的质量很好。资源多
- 网友 丁***菱:
好好好好好好好好好好好好好好好好好好好好好好好好好
- 网友 堵***格:
OK,还可以
- 网友 邱***洋:
不错,支持的格式很多
- 网友 蓬***之:
好棒good
喜欢"FLEX 与 BISON(影印版)"的人也看了
预售 【中商原版】故事的解剖(二版) 跟好莱坞编剧教父学习说故事的技艺 港台艺术原版 罗伯特麦基 漫遊者文化出版 2025 chm pdf kindle rb azw3 下载 115盘
新商务英语翻译教程 清华大学出版社 2025 chm pdf kindle rb azw3 下载 115盘
你的善良,也许只是软弱黄玉玲文化发展出版社【现货实拍 可开发票 下单速发 正版图书】 2025 chm pdf kindle rb azw3 下载 115盘
作者编辑实用手册 2025 chm pdf kindle rb azw3 下载 115盘
晋武帝传 2025 chm pdf kindle rb azw3 下载 115盘
书虫.牛津英汉双语读物(升级版)(五级2)(适合高二.高三年级) 2025 chm pdf kindle rb azw3 下载 115盘
动物大数据 儿童科普 一年级课外阅读 凯迪克大奖、波士顿环球报号角奖得主作品。一本用数据展现动物特色 正版书籍 爱心树正版 2025 chm pdf kindle rb azw3 下载 115盘
实用五金手册 2025 chm pdf kindle rb azw3 下载 115盘
天气揭秘-英国权威揭秘百科 [英]迈克尔·阿拉贝 著 化学工业出版社【正版】 2025 chm pdf kindle rb azw3 下载 115盘
浙江期末:科学(三年级上册 教科版) 2025 chm pdf kindle rb azw3 下载 115盘
- 2022春 小学同步作文新讲练二年级下册RJ人教版小学2年级下册作文教学参考资料名师指点同步阅读 精选大量佳作内容丰富幽默 2025 chm pdf kindle rb azw3 下载 115盘
- 大学商务英语综合教程1(第2版 学生用书) 2025 chm pdf kindle rb azw3 下载 115盘
- 植物大战僵尸2恐龙漫画魔术团大事件 2025 chm pdf kindle rb azw3 下载 115盘
- 早教书 幼儿故事 心理成长童话书 为孩子构建受益一生的心智模式:难过三分钟 采夕著,采夕编,陈致国 绘 中国少年儿童新闻出版总社 9787514854084 2025 chm pdf kindle rb azw3 下载 115盘
- 合同诈骗罪专题整理 2025 chm pdf kindle rb azw3 下载 115盘
- 中国海关报关实用手册(2023) 2025 chm pdf kindle rb azw3 下载 115盘
- 吴相钰《陈阅增普通生物学》(第4版)课后习题和考研真题详解 2025 chm pdf kindle rb azw3 下载 115盘
- 内蒙古自治区资源税扩围研究 2025 chm pdf kindle rb azw3 下载 115盘
- 无字史记 2025 chm pdf kindle rb azw3 下载 115盘
- 寿命图鉴:从生物至宇宙,汇集万物的生命图鉴 [日]山口香绪里 绘 2025 chm pdf kindle rb azw3 下载 115盘
书籍真实打分
故事情节:8分
人物塑造:9分
主题深度:5分
文字风格:6分
语言运用:8分
文笔流畅:8分
思想传递:6分
知识深度:3分
知识广度:6分
实用性:5分
章节划分:4分
结构布局:8分
新颖与独特:7分
情感共鸣:5分
引人入胜:5分
现实相关:5分
沉浸感:9分
事实准确性:3分
文化贡献:4分