[ 收藏 ] [ 简体中文 ]  
臺灣貨到付款、ATM、超商、信用卡PAYPAL付款,4-7個工作日送達,999元臺幣免運費   在線留言 商品價格為新臺幣 
首頁 電影 連續劇 音樂 圖書 女裝 男裝 童裝 內衣 百貨家居 包包 女鞋 男鞋 童鞋 計算機周邊

商品搜索

 类 别:
 关键字:
    

商品分类

  •  管理

     一般管理学
     市场/营销
     会计
     金融/投资
     经管音像
     电子商务
     创业企业与企业家
     生产与运作管理
     商务沟通
     战略管理
     商业史传
     MBA
     管理信息系统
     工具书
     外文原版/影印版
     管理类职称考试
     WTO
     英文原版书-管理
  •  投资理财

     证券/股票
     投资指南
     理财技巧
     女性理财
     期货
     基金
     黄金投资
     外汇
     彩票
     保险
     购房置业
     纳税
     英文原版书-投资理财
  •  经济

     经济学理论
     经济通俗读物
     中国经济
     国际经济
     各部门经济
     经济史
     财政税收
     区域经济
     统计 审计
     贸易政策
     保险
     经济数学
     各流派经济学说
     经济法
     工具书
     通货膨胀
     财税外贸保险类考试
     英文原版书-经济
  •  社会科学

     语言文字
     社会学
     文化人类学/人口学
     新闻传播出版
     社会科学总论
     图书馆学/档案学
     经典名家作品集
     教育
     英文原版书-社会科学
  •  哲学

     哲学知识读物
     中国古代哲学
     世界哲学
     哲学与人生
     周易
     哲学理论
     伦理学
     哲学史
     美学
     中国近现代哲学
     逻辑学
     儒家
     道家
     思维科学
     马克思主义哲学
     经典作品及研究
     科学哲学
     教育哲学
     语言哲学
     比较哲学
  •  宗教

  •  心理学

  •  古籍

  •  文化

  •  历史

     历史普及读物
     中国史
     世界史
     文物考古
     史家名著
     历史地理
     史料典籍
     历史随笔
     逸闻野史
     地方史志
     史学理论
     民族史
     专业史
     英文原版书-历史
     口述史
  •  传记

  •  文学

  •  艺术

     摄影
     绘画
     小人书/连环画
     书法/篆刻
     艺术设计
     影视/媒体艺术
     音乐
     艺术理论
     收藏/鉴赏
     建筑艺术
     工艺美术
     世界各国艺术概况
     民间艺术
     雕塑
     戏剧艺术/舞台艺术
     艺术舞蹈
     艺术类考试
     人体艺术
     英文原版书-艺术
  •  青春文学

  •  文学

     中国现当代随笔
     文集
     中国古诗词
     外国随笔
     文学理论
     纪实文学
     文学评论与鉴赏
     中国现当代诗歌
     外国诗歌
     名家作品
     民间文学
     戏剧
     中国古代随笔
     文学类考试
     英文原版书-文学
  •  法律

     小说
     世界名著
     作品集
     中国古典小说
     四大名著
     中国当代小说
     外国小说
     科幻小说
     侦探/悬疑/推理
     情感
     魔幻小说
     社会
     武侠
     惊悚/恐怖
     历史
     影视小说
     官场小说
     职场小说
     中国近现代小说
     财经
     军事
  •  童书

  •  成功/励志

  •  政治

  •  军事

  •  科普读物

  •  计算机/网络

     程序设计
     移动开发
     人工智能
     办公软件
     数据库
     操作系统/系统开发
     网络与数据通信
     CAD CAM CAE
     计算机理论
     行业软件及应用
     项目管理 IT人文
     计算机考试认证
     图形处理 图形图像多媒体
     信息安全
     硬件
     项目管理IT人文
     网络与数据通信
     软件工程
     家庭与办公室用书
  •  建筑

  •  医学

     中医
     内科学
     其他临床医学
     外科学
     药学
     医技学
     妇产科学
     临床医学理论
     护理学
     基础医学
     预防医学/卫生学
     儿科学
     医学/药学考试
     医院管理
     其他医学读物
     医学工具书
  •  自然科学

     数学
     生物科学
     物理学
     天文学
     地球科学
     力学
     科技史
     化学
     总论
     自然科学类考试
     英文原版书-自然科学
  •  工业技术

     环境科学
     电子通信
     机械/仪表工业
     汽车与交通运输
     电工技术
     轻工业/手工业
     化学工业
     能源与动力工程
     航空/航天
     水利工程
     金属学与金属工艺
     一般工业技术
     原子能技术
     安全科学
     冶金工业
     矿业工程
     工具书/标准
     石油/天然气工业
     原版书
     武器工业
     英文原版书-工业技
  •  农业/林业

  •  外语

  •  考试

  •  教材

  •  工具书

  •  中小学用书

  •  中小学教科书

  •  动漫/幽默

  •  烹饪/美食

  •  时尚/美妆

  •  旅游/地图

  •  家庭/家居

  •  亲子/家教

  •  两性关系

  •  育儿/早教

     保健/养生
     体育/运动
     手工/DIY
     休闲/爱好
     英文原版书
     港台图书
     研究生
     工学
     公共课
     经济管理
     理学
     农学
     文法类
     医学
  • flex 與 bison(影印版)
    該商品所屬分類:計算機/網絡 -> 操作繫統/繫統開發
    【市場價】
    507-736
    【優惠價】
    317-460
    【作者】 萊文John 
    【所屬類別】 圖書  計算機/網絡  操作繫統/繫統開發  LINUX圖書  計算機/網絡  影印版 
    【出版社】東南大學出版社 
    【ISBN】9787564119324
    【折扣說明】一次購物滿999元台幣免運費+贈品
    一次購物滿2000元台幣95折+免運費+贈品
    一次購物滿3000元台幣92折+免運費+贈品
    一次購物滿4000元台幣88折+免運費+贈品
    【本期贈品】①優質無紡布環保袋,做工棒!②品牌簽字筆 ③品牌手帕紙巾
    版本正版全新電子版PDF檔
    您已选择: 正版全新
    溫馨提示:如果有多種選項,請先選擇再點擊加入購物車。
    *. 電子圖書價格是0.69折,例如了得網價格是100元,電子書pdf的價格則是69元。
    *. 購買電子書不支持貨到付款,購買時選擇atm或者超商、PayPal付款。付款後1-24小時內通過郵件傳輸給您。
    *. 如果收到的電子書不滿意,可以聯絡我們退款。謝謝。
    內容介紹



    開本:16開
    紙張:膠版紙
    包裝:平裝

    是否套裝:否
    國際標準書號ISBN:9787564119324
    作者:萊文(John

    出版社:東南大學出版社
    出版時間:2010年01月 

        
        
    "

    內容簡介
    《flex 與 bison(影印版)》內容簡介:如果你需要分析或處理Linux或Unix中的文本數據,這本有用的書籍就向你講解了如何使用flex和bison迅速解決問題。《flex與bison》被期待已久,是經典O’Reilly繫列書籍《lex & yacc》的續篇。在原書出版以來的近20年中,flex和bison已被證明比原來的Unix工具更可靠、更強大。
    《flex與bison》一書涵蓋了Linux和Unix程序開發中相同的重要核心功能,以及一些重要的新主題。你會找到適用於新手的修訂教程和適用於高級用戶的參考資料,以及對每個程序的基本用法的解釋,並且運用它們創建簡單、獨立的應用程序。有了《flex與bison》,你會發現這些靈活的工具提供的廣泛用途。
    包括的主題有:
    · 正則表達式工具無法處理的地址語法擠壓(address syrltax crunching)
    · 生成編譯器和解釋器,並運用大範圍的文本處理功能
    · 解釋代碼、配置文件或任何其他結構化的格式
    · 學習關鍵編程技術,包括抽像語法樹和符號表《flex 與 bison(影印版)》內容簡介:如果你需要分析或處理Linux或Unix中的文本數據,這本有用的書籍就向你講解了如何使用flex和bison迅速解決問題。《flex與bison》被期待已久,是經典O’Reilly繫列書籍《lex & yacc》的續篇。在原書出版以來的近20年中,flex和bison已被證明比原來的Unix工具更可靠、更強大。
    《flex與bison》一書涵蓋了Linux和Unix程序開發中相同的重要核心功能,以及一些重要的新主題。你會找到適用於新手的修訂教程和適用於高級用戶的參考資料,以及對每個程序的基本用法的解釋,並且運用它們創建簡單、獨立的應用程序。有了《flex與bison》,你會發現這些靈活的工具提供的廣泛用途。
    包括的主題有:
    · 正則表達式工具無法處理的地址語法擠壓(address syrltax crunching)
    · 生成編譯器和解釋器,並運用大範圍的文本處理功能
    · 解釋代碼、配置文件或任何其他結構化的格式
    · 學習關鍵編程技術,包括抽像語法樹和符號表
    · 用完整的示例代碼實現一個完善的SQI一語法
    · 使用新的功能,如純(可重入)詞法分析器(Iexer)和語法分析器(parser)、功能強大的JGLR分析器和C++的接口
    作者簡介
    John Levine, Taughannock Networks的創始人,著有20餘本技術書籍,其中包括《lex & yacc》和《qmail》,均為O’Reilly出版。
    目錄
    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 QuitePreface
    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
    前言
    Flex and bison are tools designed for writers of compilers and interpreters, althoughthey are also useful for many applications that will interest noncompiler writers. Anyapplication that looks for patterns in its input or has an input or command language
    媒體評論
    “我很高興看到John徹底詳盡地重寫這本經典書。他更新的示例和說明,能夠幫助老用戶和新手擺脫模仿那些已經根深蒂固的舊lex和yacc。”
    ——Joel E. Denny bison維護人員
    在線試讀
    A bison specification has the same three-part structure as a flex specification. (Flexcopied its structure from the earlier lex, which copied its structure from yacc, the predecessor of bison.) The first section, the definition section, handles control informationfor the parser and generally sets up the execution environment in which the parser willoperate. The second section contains the rules for the parser, and the third section isC code copied verbatim into the generated C program.
    Bison creates the C program by plugging pieces into a standard skeleton file. The rulesare compiled into arrays that represent the state machine that matches the input tokens.The actions have the SN and @N values translated into C and then are put into a switchstatement within yyparse0 that runs the appropriate action each time there's a reduction. Some bits of the skeleton have multiple versions from which bison chooses depending on what options are in use; for example, if the parser uses the locations feature,it includes code to handle location data.
    In this chapter we take the simple calculator example from Chapter 1 and extend itsignificantly. First, we rewrite it to take advantage of some handy bison shortcuts andchange it to produce a reusable data structure rather than computing the values on thefly. Later, we'll add more complex syntax for loops and functions and show how toimplement them in a simple interpreter.
    One of the most powerful data structures used in compilers is an abstract syntax tree(AST). In Chapter 1 we saw a parse tree, a tree that has a node for every rule used toparse the input string. In most real grammars, there are rules that exist to managegrouping but that add no meaning to the program. In the calculator example, the rulesexp: term and term: factor exist only to tell the parser the relative precedence of theoperators. An AST is basically a parse tree that omits the nodes for the uninterestingrules.


     
    網友評論  我們期待著您對此商品發表評論
     
    相關商品
    在線留言 商品價格為新臺幣
    關於我們 送貨時間 安全付款 會員登入 加入會員 我的帳戶 網站聯盟
    DVD 連續劇 Copyright © 2024, Digital 了得網 Co., Ltd.
    返回頂部