当前位置:首页>正文

FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】 pdf 115盘 kindle 下载 tct lit mobi 在线

免费下载书籍地址:PDF下载地址

精美图片

FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】书籍详细信息

  • ISBN:9787564119324
  • 作者:暂无作者
  • 出版社:暂无出版社
  • 出版时间:2010-01
  • 页数:271
  • 价格:159.00
  • 纸张:胶版纸
  • 装帧:平装-胶订
  • 开本:16开
  • 语言:未知
  • 丛书:暂无丛书
  • TAG:暂无
  • 豆瓣评分:暂无豆瓣评分

寄语:

代寻稀缺书老书,有问题可联系在线客服15011482491

内容简介:

如果你需要分析或处理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下载地址:

在线阅读地址:FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】在线阅读

在线听书地址:FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】在线收听

在线购买地址:FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】在线购买

原文赏析:

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》,你会发现这些灵活的工具提供的广泛用途。

书籍真实打分

故事情节:9分

人物塑造:9分

主题深度:7分

文字风格:5分

语言运用:5分

文笔流畅:6分

思想传递:3分

知识深度:7分

知识广度:3分

实用性:6分

章节划分:9分

结构布局:6分

新颖与独特:3分

情感共鸣:3分

引人入胜:6分

现实相关:5分

沉浸感:4分

事实准确性:9分

文化贡献:6分

网站评分

书籍多样性:3分

书籍信息完全性:8分

网站更新速度:7分

使用便利性:7分

书籍清晰度:7分

书籍格式兼容性:6分

是否包含广告:8分

加载速度:7分

安全性:7分

稳定性:3分

搜索功能:8分

下载便捷性:8分

下载点评

  • 赚了(124+)
  • 强烈推荐(248+)
  • 章节完整(65+)
  • 实惠(599+)
  • 赞(431+)
  • 体验满分(638+)
  • 经典(303+)
  • 愉快的找书体验(589+)
  • 无盗版(213+)
  • 书籍完整(130+)

下载评价

网友 家***丝:好6666666

网友 索***宸:书的质量很好。资源多

网友 师***怡:说的好不如用的好,真心很好。越来越完美

网友 温***欣:可以可以可以

网友 步***青:。。。。。好

网友 后***之:强烈推荐!无论下载速度还是书籍内容都没话说 真的很良心!

网友 堵***格:OK,还可以

网友 方***旋:真的很好,里面很多小说都能搜到,但就是收费的太多了

网友 苍***如:什么格式都有的呀。

版权声明

1本文:FLEX 与 BISON[美]莱文(John Levine)东南大学出版社【现货实拍 可开发票 下单速发 正版图书】转载请注明出处。
2本站内容除签约编辑原创以外,部分来源网络由互联网用户自发投稿仅供学习参考。
3文章观点仅代表原作者本人不代表本站立场,并不完全代表本站赞同其观点和对其真实性负责。
4文章版权归原作者所有,部分转载文章仅为传播更多信息服务用户,如信息标记有误请联系管理员。
5本站一律禁止以任何方式发布或转载任何违法违规的相关信息,如发现本站上有涉嫌侵权/违规及任何不妥的内容,请第一时间联系我们申诉反馈,经核实立即修正或删除。


本站仅提供信息存储空间服务,部分内容不拥有所有权,不承担相关法律责任。

相关文章:

  • 钢结构稳定 理论与应用 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 7号人神奇迷你黏土书:环球美食汇 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 乌龙院大长篇(活宝传奇7) pdf 115盘 kindle 下载 tct lit mobi 在线
  • 外汇交易实战策略 郑声滔 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 正版 宝葫芦的秘密 彩图注音版小书虫阅读系列二年级三年级课外书张天翼四年级班主任推荐小学生书籍儿童文学故事书带拼音 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 二玄社书法讲座:篆书 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 彩图拼音版少儿经典文库:西游记(彩图拼音版 经典典藏美绘本) pdf 115盘 kindle 下载 tct lit mobi 在线
  • 神笔马良人民教育出版社快乐读书吧二年级下册七色花一起长大的玩具全3册曹文轩陈先云主编小学二年级语文课外阅读 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 场景化运用:物流供应链十二大创新科技及实战案例 pdf 115盘 kindle 下载 tct lit mobi 在线
  • 高尔夫运动解剖学(第2版) pdf 115盘 kindle 下载 tct lit mobi 在线