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》,你会发现这些灵活的工具提供的广泛用途。
网站评分
书籍多样性:8分
书籍信息完全性:6分
网站更新速度:6分
使用便利性:7分
书籍清晰度:3分
书籍格式兼容性:5分
是否包含广告:4分
加载速度:7分
安全性:9分
稳定性:4分
搜索功能:5分
下载便捷性:8分
下载点评
- 排版满分(105+)
- 内涵好书(241+)
- 品质不错(98+)
- mobi(279+)
- 种类多(469+)
- 一般般(171+)
- 好评多(557+)
- pdf(179+)
- 差评(134+)
- 情节曲折(234+)
- 速度慢(116+)
- 全格式(205+)
- 无漏页(555+)
下载评价
- 网友 仰***兰:
喜欢!很棒!!超级推荐!
- 网友 康***溪:
强烈推荐!!!
- 网友 敖***菡:
是个好网站,很便捷
- 网友 汪***豪:
太棒了,我想要azw3的都有呀!!!
- 网友 田***珊:
可以就是有些书搜不到
- 网友 邱***洋:
不错,支持的格式很多
- 网友 利***巧:
差评。这个是收费的
- 网友 潘***丽:
这里能在线转化,直接选择一款就可以了,用他这个转很方便的
- 网友 谢***灵:
推荐,啥格式都有
- 网友 瞿***香:
非常好就是加载有点儿慢。
- 网友 权***波:
收费就是好,还可以多种搜索,实在不行直接留言,24小时没发到你邮箱自动退款的!
喜欢"FLEX 与 BISON(影印版)"的人也看了
小故事大智慧丛书:寻找 [美] 柯·威波 9787555207368 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 阿里云
电子琴考级曲目学习辅导 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 阿里云
- CCNA 2.0考试指南 英文原版 含盘 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 一遍过 必修3 历史 YL (岳麓)高二上同步辅导随堂练习 2023版天星教育 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 柳大华实战100局 孙志伟,刘海亭 著 黑龙江科学技术出版社【正版书】 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 【现货速发】卡耐基写给女人的一生幸福忠告书籍女性提升自己励志书籍提高自我修养气质情商人生智慧青春励志书枕边 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 《民用建筑设计统一标准》图示 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 大学英语四级考试标准阅读全文翻译100篇(第九版) mobi 下载 网盘 caj lrf pdf txt 阿里云
- 全国成人声乐考级曲集(附光盘9-10级中国音乐家协会社会音乐水平考级教材) 中国音乐家协会音乐考级委员会 上海音乐出版社 mobi 下载 网盘 caj lrf pdf txt 阿里云
- 装饰与防水工程施工 mobi 下载 网盘 caj lrf pdf txt 阿里云
书籍真实打分
故事情节:4分
人物塑造:4分
主题深度:7分
文字风格:5分
语言运用:5分
文笔流畅:3分
思想传递:7分
知识深度:5分
知识广度:4分
实用性:4分
章节划分:3分
结构布局:7分
新颖与独特:9分
情感共鸣:7分
引人入胜:6分
现实相关:8分
沉浸感:5分
事实准确性:6分
文化贡献:3分