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》,你会发现这些灵活的工具提供的广泛用途。
网站评分
书籍多样性:3分
书籍信息完全性:5分
网站更新速度:9分
使用便利性:6分
书籍清晰度:9分
书籍格式兼容性:4分
是否包含广告:9分
加载速度:6分
安全性:6分
稳定性:6分
搜索功能:8分
下载便捷性:3分
下载点评
- 收费(133+)
- 品质不错(660+)
- 快捷(79+)
- 方便(536+)
- 四星好评(396+)
- 赚了(635+)
- 差评(314+)
- 强烈推荐(264+)
- 推荐购买(175+)
下载评价
- 网友 融***华:
下载速度还可以
- 网友 敖***菡:
是个好网站,很便捷
- 网友 辛***玮:
页面不错 整体风格喜欢
- 网友 林***艳:
很好,能找到很多平常找不到的书。
- 网友 国***芳:
五星好评
- 网友 家***丝:
好6666666
- 网友 谢***灵:
推荐,啥格式都有
- 网友 索***宸:
书的质量很好。资源多
- 网友 益***琴:
好书都要花钱,如果要学习,建议买实体书;如果只是娱乐,看看这个网站,对你来说,是很好的选择。
- 网友 康***溪:
强烈推荐!!!
- 网友 寇***音:
好,真的挺使用的!
喜欢"FLEX 与 BISON(影印版)"的人也看了
浮士德 2025 chm pdf kindle rb azw3 下载 115盘
历年真题精解(申论2021全新升级版福建省公务员录用考试专用教材) 2025 chm pdf kindle rb azw3 下载 115盘
人性的退化 2025 chm pdf kindle rb azw3 下载 115盘
新东方 FCE专项突破:写作 2025 chm pdf kindle rb azw3 下载 115盘
正版粤人版八年级下册地理书 广人版地理八年级下册课本教材会考用书 广东人民出版社初二地理八年级下册教科书J**地理8下 2025 chm pdf kindle rb azw3 下载 115盘
学生实用全新英汉汉英大词典 2025 chm pdf kindle rb azw3 下载 115盘
罕见病药物卫生技术评估专家共识 (2019版) 2025 chm pdf kindle rb azw3 下载 115盘
心血管植入型电子装置术后管理 宿燕岗,秦胜梅 主编 2025 chm pdf kindle rb azw3 下载 115盘
文都教育 2016全国一级建造师执业资格考试:建设工程法规及相关知识历年真题精析与标准预测 2025 chm pdf kindle rb azw3 下载 115盘
马克思主义哲学史 2025 chm pdf kindle rb azw3 下载 115盘
- 建设工程项目管理复习题集—2011全国一级建造师执业资格考试用书 2025 chm pdf kindle rb azw3 下载 115盘
- 职场胜任力:职场的关键3年这样做 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盘
- 2024春一本小学语文寒假衔接 五年级上下册衔接 28天打卡寒假衔接寒假作业每日练课外阅读理解强化训练视频讲解 开心教育 2025 chm pdf kindle rb azw3 下载 115盘
- 全新正版图书 中国传统文化概论马新山东人民出版社9787209066037 中华文化概论人天图书专营店 2025 chm pdf kindle rb azw3 下载 115盘
- 思想政治必修1 2025 chm pdf kindle rb azw3 下载 115盘
- 【年末清仓】企业管理知识分册 2025 chm pdf kindle rb azw3 下载 115盘
书籍真实打分
故事情节:8分
人物塑造:5分
主题深度:9分
文字风格:5分
语言运用:8分
文笔流畅:5分
思想传递:7分
知识深度:4分
知识广度:3分
实用性:7分
章节划分:7分
结构布局:8分
新颖与独特:5分
情感共鸣:8分
引人入胜:7分
现实相关:9分
沉浸感:5分
事实准确性:9分
文化贡献:3分