FLEX 与 BISON(影印版) mobi 下载 网盘 caj lrf pdf txt 阿里云

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 Expressi*** 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 Expressi***
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
Li***l Character Tokens
Building the AST Calculator
Shift/Reduce Conflicts and *** 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 Functi*** in the Calculator
User-Defined Functi***
Using the Advanced Calculator
Exercises
4. Parsing SQL
A Quick Overview of SQL
Relational Databases
Manipulating Relati***
Three Ways to Use SQL
SQL to RPN
The Lexer
Scanning SQL Keywords
Scanning Numbers
Scanning ***s and Punctuation
Scanning Functi*** and Names
Comments and Miscellany
The Parser
The Top-Level Parsing Rules
SQL Expressi***
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 Specificati***
Structure of a Flex Specification
Definition Section
Rules Section
User Subroutines
BEGIN
C++ Scanners
Context Sensitivity
Left Context
Right Context
Definiti*** (Substituti***)
ECHO
Input Management
Stdio File Chaining
Input Buffers
Input from Strings
File Nesting
input()
YY_INPUT
Flex Library
In***ctive and Batch Scanners
Line Numbers and yylineno
Li***l Block
Multiple Lexers in One Program
Combined Lexers
Multiple Lexers
Opti*** 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 Specificati***
Structure of a Bison Grammar
Symbols
Definition Section
Rules Section
User Subroutines Section
Acti***
Embedded Acti***
Symbol Types for Embedded Acti***
Ambiguity and Conflicts
Types of Conflicts
Shift/Reduce Conflicts
Reduce/Reduce Conflicts
%expect
GLR Parsers
Bugs in Bison Programs
Infinite Recursion
Interchanging Precedence
Embedded Acti***
C++ Parsers
%code Blocks
End Marker
Error Token and Error Recovery
%destructor
Inherited Attributes ($0)
Symbol Types for Inherited Attributes
%initial-action
Lexical Feedback
Li***l Block
Li***l Tokens
Locati***
%parse-param
Portability of Bison Parsers
Porting Bison Grammars
Porting Generated C Parsers
Libraries
Character Codes
Precedence and Associativity Declarati***
Precedence
Associativity
Precedence Declarati***
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
Locati***
Adding Locati*** to the Parser
Adding Locati*** to the Lexer
More Sophisticated Locati*** with Filenames
Error Recovery
Bison Error Recovery
Freeing Discarded Symbols
Error Recovery in In***ctive 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 Scanne***ith 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》,你会发现这些灵活的工具提供的广泛用途。
网站评分
书籍多样性:6分
书籍信息完全性:8分
网站更新速度:5分
使用便利性:7分
书籍清晰度:5分
书籍格式兼容性:3分
是否包含广告:6分
加载速度:4分
安全性:3分
稳定性:4分
搜索功能:7分
下载便捷性:8分
下载点评
- 情节曲折(541+)
- 内涵好书(114+)
- 内容完整(456+)
- 中评多(411+)
- 小说多(469+)
- 少量广告(638+)
- 博大精深(491+)
- 好评(535+)
- 愉快的找书体验(340+)
- 强烈推荐(529+)
- 在线转格式(122+)
- txt(447+)
下载评价
- 网友 瞿***香:
非常好就是加载有点儿慢。
- 网友 康***溪:
强烈推荐!!!
- 网友 马***偲:
好 很好 非常好 无比的好 史上最好的
- 网友 国***舒:
中评,付点钱这里能找到就找到了,找不到别的地方也不一定能找到
- 网友 焦***山:
不错。。。。。
- 网友 冯***卉:
听说内置一千多万的书籍,不知道真假的
- 网友 相***儿:
你要的这里都能找到哦!!!
- 网友 沈***松:
挺好的,不错
- 网友 方***旋:
真的很好,里面很多小说都能搜到,但就是收费的太多了
- 网友 索***宸:
书的质量很好。资源多
- 网友 宓***莉:
不仅速度快,而且内容无盗版痕迹。
- 网友 曾***玉:
直接选择epub/azw3/mobi就可以了,然后导入微信读书,体验百分百!!!
- 网友 詹***萍:
好评的,这是自己一直选择的下载书的网站
- 网友 隗***杉:
挺好的,还好看!支持!快下载吧!
- 网友 汪***豪:
太棒了,我想要azw3的都有呀!!!
- 网友 仰***兰:
喜欢!很棒!!超级推荐!
喜欢"FLEX 与 BISON(影印版)"的人也看了
FIDIC EPC合同实务操作 mobi 下载 网盘 caj lrf pdf txt 阿里云
空手道教学与训练 mobi 下载 网盘 caj lrf pdf txt 阿里云
九年级思想品德(人教版)-教材完全解读-王后雄学案(课标本) mobi 下载 网盘 caj lrf pdf txt 阿里云
为什么精英可以打造十倍高效团队 mobi 下载 网盘 caj lrf pdf txt 阿里云
读史方舆纪要 mobi 下载 网盘 caj lrf pdf txt 阿里云
房产保卫战 mobi 下载 网盘 caj lrf pdf txt 阿里云
制苯装置操作工 mobi 下载 网盘 caj lrf pdf txt 阿里云
物理化学习题精解(科学版,第2版)上 科学出版社 mobi 下载 网盘 caj lrf pdf txt 阿里云
陈春花管理真言 mobi 下载 网盘 caj lrf pdf txt 阿里云
Oxford Bookworms Library: Level 2: Dead Man's Island 牛津书虫分级读物2级:亡灵岛(英文原版) mobi 下载 网盘 caj lrf pdf txt 阿里云
- 美术高考新范例:素描头像 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 阅读的方法 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 资产评估师2023教辅(官方正版)资产评估相关知识全国大模考 中国财政经济出版社 mobi 下载 网盘 caj lrf pdf txt 阿里云
- WebGL编程指南【正版图书 无忧售后】 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 声乐考级曲集---美声卷(修订版) mobi 下载 网盘 caj lrf pdf txt 阿里云
- 100个不得不玩的手机游戏 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 剑桥国际英语教程(第5版)(学生包)(1) mobi 下载 网盘 caj lrf pdf txt 阿里云
- 大学英语六级听力点津 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 全国卫生专业职称考试 人卫版2018全国卫生专业职称技术资格证考试护师资格考试 指导 护理学(中级)要点精编(配增值) mobi 下载 网盘 caj lrf pdf txt 阿里云
- 电视剧 国色天娇 正版4DVD 经济版 mobi 下载 网盘 caj lrf pdf txt 阿里云
书籍真实打分
故事情节:5分
人物塑造:4分
主题深度:3分
文字风格:9分
语言运用:4分
文笔流畅:4分
思想传递:9分
知识深度:8分
知识广度:9分
实用性:9分
章节划分:9分
结构布局:6分
新颖与独特:6分
情感共鸣:3分
引人入胜:5分
现实相关:3分
沉浸感:5分
事实准确性:4分
文化贡献:9分