FLEX 与 BISON(影印版) pdf pdb 阿里云 极速 mobi caj kindle 下载

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分
书籍信息完全性:7分
网站更新速度:9分
使用便利性:6分
书籍清晰度:8分
书籍格式兼容性:4分
是否包含广告:6分
加载速度:5分
安全性:5分
稳定性:3分
搜索功能:7分
下载便捷性:3分
下载点评
- 强烈推荐(562+)
- 少量广告(168+)
- 快捷(517+)
- 可以购买(227+)
- 盗版少(191+)
- 内涵好书(571+)
下载评价
- 网友 索***宸:
书的质量很好。资源多
- 网友 冯***卉:
听说内置一千多万的书籍,不知道真假的
- 网友 辛***玮:
页面不错 整体风格喜欢
- 网友 谭***然:
如果不要钱就好了
- 网友 冯***丽:
卡的不行啊
- 网友 康***溪:
强烈推荐!!!
- 网友 融***华:
下载速度还可以
- 网友 菱***兰:
特好。有好多书
- 网友 益***琴:
好书都要花钱,如果要学习,建议买实体书;如果只是娱乐,看看这个网站,对你来说,是很好的选择。
- 网友 訾***雰:
下载速度很快,我选择的是epub格式
- 网友 冉***兮:
如果满分一百分,我愿意给你99分,剩下一分怕你骄傲
- 网友 芮***枫:
有点意思的网站,赞一个真心好好好 哈哈
- 网友 游***钰:
用了才知道好用,推荐!太好用了
喜欢"FLEX 与 BISON(影印版)"的人也看了
知识清单高中化学新教材2024 pdf pdb 阿里云 极速 mobi caj kindle 下载
考研英语翻译与写作双向突破(苹果英语考研红皮书) pdf pdb 阿里云 极速 mobi caj kindle 下载
JSP程序设计实用教程(第二版)(21世纪高等学校精品规划教材) pdf pdb 阿里云 极速 mobi caj kindle 下载
正版现货 线装中华国粹 梦粱录 梦梁录 吴自牧著 9787556831654 二十一世纪出版社 古文古籍 介绍南宋都城临安城市风貌的著作 pdf pdb 阿里云 极速 mobi caj kindle 下载
内科护理学(全国高等职业院校护理类专业第二轮教材) pdf pdb 阿里云 极速 mobi caj kindle 下载
海底两万里 pdf pdb 阿里云 极速 mobi caj kindle 下载
小学生全功能字典(新修订版) pdf pdb 阿里云 极速 mobi caj kindle 下载
陕西文化概观 pdf pdb 阿里云 极速 mobi caj kindle 下载
湖南会计从业考试用书中公湖南省会计从业资格无纸化考试辅导教材会计电算化历年真题及全真模拟预测试卷新大纲版 pdf pdb 阿里云 极速 mobi caj kindle 下载
爽心美食 Comfort Food pdf pdb 阿里云 极速 mobi caj kindle 下载
- 银屑病 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 《纳税筹划(第6版)》习题集(普通高等学校应用型教材·会计与财务) pdf pdb 阿里云 极速 mobi caj kindle 下载
- 漫画中华成语全6册——乌龙院成语故事(套装共6册) 9787540545789 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 全国英语等级考试成功过关一本通 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 中公版·2018黑龙江省公务员录用考试专用教材:申论15天快速突破 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 畅游澳大利亚2020 2021 全彩升级版国外旅游指南攻略旅游地图国外自助旅游指南大洋洲旅游书籍旅游攻略书路线自助游旅游华夏出版社 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 竞争法裁判规则评析(第1辑) 中国人民公安大学出版社 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 地震那些事儿 pdf pdb 阿里云 极速 mobi caj kindle 下载
- 乐高幻影忍者第44集(附乐高原装玩具) pdf pdb 阿里云 极速 mobi caj kindle 下载
- 汽车维修职场健康与安全 pdf pdb 阿里云 极速 mobi caj kindle 下载
书籍真实打分
故事情节:9分
人物塑造:4分
主题深度:5分
文字风格:3分
语言运用:7分
文笔流畅:5分
思想传递:9分
知识深度:9分
知识广度:6分
实用性:3分
章节划分:5分
结构布局:6分
新颖与独特:3分
情感共鸣:7分
引人入胜:9分
现实相关:4分
沉浸感:9分
事实准确性:7分
文化贡献:6分