FLEX 与 BISON(影印版)

FLEX 与 BISON(影印版)
分享
扫描下方二维码分享到微信
打开微信,点击右上角”+“,
使用”扫一扫“即可将网页分享到朋友圈。
作者: [美] (John Levine)
2010-01
版次: 1
ISBN: 9787564119324
定价: 46.00
装帧: 平装
开本: 16开
纸张: 胶版纸
页数: 271页
字数: 311千字
正文语种: 英语
32人买过
  •   如果你需要分析或处理Linux或Unix中的文本数据,这本有用的书籍就向你讲解了如何使用flex和bison迅速解决问题。《flex与bison》被期待已久,是经典OReilly系列书籍《lex&yacc》的续篇。在原书出版以来的近20年中,flex和bison已被证明比原来的Unix工具更可靠、更强大。《flex与bison》一书涵盖了Linux和Unix程序开发中相同的重要核心功能,以及一些重要的新主题。你会找到适用于新手的修订教程和适用于高级用户的参考资料,以及对每个程序的基本用法的解释,并且运用它们创建简单、独立的应用程序。有了《flex与bison》,你会发现这些灵活的工具提供的广泛用途。 John Levine, Taughannock Networks的创始人,著有20余本技术书籍,其中包括《lex & yacc》和《qmail》,均为O'Reilly出版。 Preface
    1.IntroducingFlexandBison
    LexicalAnalysisandPa ing
    RegularExpressio andScanning
    OurFi tFlexProgram
    ProgramsinPlainFlex
    PuttingFlexandBisonTogether
    TheScannerasCoroutine
    Toke andValues
    Gramma andPa ing
    BNFGramma 
    Bison'sRuleInputLanguage
    CompilingFlexandBisonProgramsTogether
    AmbiguousGramma :NotQuite
    AddingaFewMoreRules
    FlexandBisonvs.HandwrittenScanne andPa e 
    Exercises

    2.UsingFlex
    RegularExpressio 
    RegularExpressionExamples
    HowFlexHandlesAmbiguousPatter 
    Context-DependentToke 
    FileI/OinFlexScanne 
    ReadingSeveralFiles
    TheI/OStructureofaFlexScanner
    InputtoaFlexScanner
    FlexScannerOutput
    StartStatesandNestedInputFiles
    SymbolTablesandaConcordanceGenerator
    ManagingSymbolTables
    UsingaSymbolTable
    CLanguageCross-Reference
    Exercises

    3.UsingBison
    HowaBisonPa erMatchesItsInput
    Shift/ReducePa ing
    WhatBison'sLALR(1)Pa erCannotPa e
    ABisonPa er
    AbstractSyntaxTrees
    AnImprovedCalculatorThatCreatesASTs
    LiteralCharacterToke 
    BuildingtheASTCalculator
    Shift/ReduceConflictsandOperatorPrecedence
    WhenNottoUsePrecedenceRules
    AnAdvancedCalculator
    AdvancedCalculatorPa er
    CalculatorStatementSyntax
    CalculatorExpressionSyntax
    Top-LevelCalculatorGrammar
    BasicPa erErrorRecovery
    TheAdvancedCalculatorLexer
    ReservedWords
    BuildingandInterpretingASTs
    EvaluatingFunctio intheCalculator
    User-DefinedFunctio 
    UsingtheAdvancedCalculator
    Exercises

    4.Pa ingSQL
    AQuickOverviewofSQL
    RelationalDatabases
    ManipulatingRelatio 
    hreeWaystoUseSQL
    SQLtoRPN
    TheLexer
    ScanningSQLKeywords
    ScanningNumbe 
    ScanningOperato andPunctuation
    ScanningFunctio andNames
    CommentsandMiscellany
    ThePa er
    TheTop-LevelPa ingRules
    SQLExpressio 
    SelectStatements
    DeleteStatement
    I ertandReplaceStatements
    UpdateStatement
    CreateDatabase
    CreateTable
    UserVariables
    ThePa erRoutines
    TheMakefilefortheSQLPa er
    Exercises

    5.AReferenceforFlexSpecificatio 
    StructureofaFlexSpecification
    DefinitionSection
    RulesSection
    UserSubroutines
    BEGIN
    C++Scanne 
    ContextSe itivity
    LeftContext
    RightContext
    Definitio (Substitutio )
    ECHO
    InputManagement
    StdioFileChaining
    InputBuffe 
    InputfromStrings
    FileNesting
    input()
    YY_INPUT
    FlexLibrary
    InteractiveandBatchScanne 
    LineNumbe andyylineno
    LiteralBlock
    MultipleLexe inOneProgram
    CombinedLexe 
    MultipleLexe 
    Optio WhenBuildingaScanner
    PortabilityofFlexLexe 
    PortingGeneratedCLexe 
    ReentrantScanne 
    ExtraDataforReentrantScanne 
    AccesstoReentrantScannerData
    ReentrantScanne ,NestedFiles,andMultipleScanne 
    UsingReentrantScanne withBison
    RegularExpressionSyntax
    Metacharacte 
    REJECT
    ReturningValuesfromyylex()
    StartStates
    unput()
    yyinput()yyunput()
    yyleng
    yyless()
    yylex()andYY_DECL
    yymore()
    yyrestart()
    yy_scan_stringandyy_scan_buffer
    YY_USER_ACTION
    yywrap()

    6.AReferenceforBisonSpecificatio 
    StructureofaBisonGrammar
    Symbols
    DefinitionSection
    RulesSection
    UserSubroutinesSection
    Actio 
    EmbeddedActio 
    SymbolTypesforEmbeddedActio 
    AmbiguityandConflicts
    TypesofConflicts
    Shift/ReduceConflicts
    Reduce/ReduceConflicts
    %expect
    GLRPa e 
    BugsinBisonPrograms
    InfiniteRecu ion
    InterchangingPrecedence
    EmbeddedActio 
    C++Pa e 
    %codeBlocks
    EndMarker
    ErrorTokenandErrorRecovery
    %destructor
    InheritedAttributes($0)
    SymbolTypesforInheritedAttributes
    %initial-action
    LexicalFeedback
    LiteralBlock
    LiteralToke 
    Locatio 
    %pa e-param
    PortabilityofBisonPa e 
    PortingBisonGramma 
    PortingGeneratedCPa e 
    Libraries
    CharacterCodes
    PrecedenceandAssociativityDeclaratio 
    Precedence
    Associativity
    PrecedenceDeclaratio 
    UsingPrecedenceandAssociativitytoResolveConflicts
    TypicalUsesofPrecedence
    Recu iveRules
    LeftandRightRecu ion
    Rules
    SpecialCharacte 
    %startDeclaration
    SymbolValues
    DeclaringSymbolTypes
    ExplicitSymbolTypes
    Toke 
    TokenNumbe 
    TokenValues
    %typeDeclaration
    %unionDeclaration
    VariantandMultipleGramma 
    CombinedPa e 
    MultiplePa e 
    Using%name-prefixorthe-pFlag
    Lexe forMultiplePa e 
    PurePa e 
    y.outputFiles
    BisonLibrary
    main()
    yyerror()
    YYABORT
    YYACCEPT
    YYBACKUP
    yyclearin
    yydebugandYYDEBUG
    YYDEBUG
    yydebug
    yyerrok
    YYERROR
    yyerror()
    yypa e()
    YYRECOVERING()

    7.AmbiguitiesandConflicts
    ThePointerModelandConflicts
    KindsofConflicts
    Pa erStates
    Contentsofname.output
    Reduce/ReduceConflicts
    Shift/ReduceConflicts
    ReviewofConflictsinname.output
    CommonExamplesofConflicts
    ExpressionGramma 
    IF/THEN/ELSE
    NestedListGrammar
    HowDoYouFixtheConflict?
    IF/THEN/ELSE(Shift/Reduce)
    LoopWithinaLoop(Shift/Reduce)
    ExpressionPrecedence(Shift/Reduce)
    LimitedLookahead(Shift/ReduceorReduce/Reduce)
    OverlapofAlternatives(Reduce/Reduce)
    Summary
    Exercises

    8.ErrorReportingandRecovery
    ErrorReporting
    Locatio 
    AddingLocatio tothePa er
    AddingLocatio totheLexer
    MoreSophisticatedLocatio withFilenames
    ErrorRecovery
    BisonErrorRecovery
    FreeingDiscardedSymbols
    ErrorRecoveryinInteractivePa e 
    WheretoPutErrorToke 
    CompilerErrorRecovery
    Exercises

    9.AdvancedFlexandBison
    PureScanne andPa e 
    PureScanne inFlex
    PurePa e inBison
    UsingPureScanne andPa e Together
    AReentrantCalculator
    GLRPa ing
    GLRVe ionoftheSQLPa er
    C++Pa e 
    AC++Calculator
    C++Pa erNaming
    AC++Pa er
    InterfacingaScannerwithaC++Pa er
    ShouldYouWriteYourPa erinC++?
    Exercises

    Appendix:SQLPa erGrammarandCross-Reference
    Glossary
    Index
  • 内容简介:
      如果你需要分析或处理Linux或Unix中的文本数据,这本有用的书籍就向你讲解了如何使用flex和bison迅速解决问题。《flex与bison》被期待已久,是经典OReilly系列书籍《lex&yacc》的续篇。在原书出版以来的近20年中,flex和bison已被证明比原来的Unix工具更可靠、更强大。《flex与bison》一书涵盖了Linux和Unix程序开发中相同的重要核心功能,以及一些重要的新主题。你会找到适用于新手的修订教程和适用于高级用户的参考资料,以及对每个程序的基本用法的解释,并且运用它们创建简单、独立的应用程序。有了《flex与bison》,你会发现这些灵活的工具提供的广泛用途。
  • 作者简介:
    John Levine, Taughannock Networks的创始人,著有20余本技术书籍,其中包括《lex & yacc》和《qmail》,均为O'Reilly出版。
  • 目录:
    Preface
    1.IntroducingFlexandBison
    LexicalAnalysisandPa ing
    RegularExpressio andScanning
    OurFi tFlexProgram
    ProgramsinPlainFlex
    PuttingFlexandBisonTogether
    TheScannerasCoroutine
    Toke andValues
    Gramma andPa ing
    BNFGramma 
    Bison'sRuleInputLanguage
    CompilingFlexandBisonProgramsTogether
    AmbiguousGramma :NotQuite
    AddingaFewMoreRules
    FlexandBisonvs.HandwrittenScanne andPa e 
    Exercises

    2.UsingFlex
    RegularExpressio 
    RegularExpressionExamples
    HowFlexHandlesAmbiguousPatter 
    Context-DependentToke 
    FileI/OinFlexScanne 
    ReadingSeveralFiles
    TheI/OStructureofaFlexScanner
    InputtoaFlexScanner
    FlexScannerOutput
    StartStatesandNestedInputFiles
    SymbolTablesandaConcordanceGenerator
    ManagingSymbolTables
    UsingaSymbolTable
    CLanguageCross-Reference
    Exercises

    3.UsingBison
    HowaBisonPa erMatchesItsInput
    Shift/ReducePa ing
    WhatBison'sLALR(1)Pa erCannotPa e
    ABisonPa er
    AbstractSyntaxTrees
    AnImprovedCalculatorThatCreatesASTs
    LiteralCharacterToke 
    BuildingtheASTCalculator
    Shift/ReduceConflictsandOperatorPrecedence
    WhenNottoUsePrecedenceRules
    AnAdvancedCalculator
    AdvancedCalculatorPa er
    CalculatorStatementSyntax
    CalculatorExpressionSyntax
    Top-LevelCalculatorGrammar
    BasicPa erErrorRecovery
    TheAdvancedCalculatorLexer
    ReservedWords
    BuildingandInterpretingASTs
    EvaluatingFunctio intheCalculator
    User-DefinedFunctio 
    UsingtheAdvancedCalculator
    Exercises

    4.Pa ingSQL
    AQuickOverviewofSQL
    RelationalDatabases
    ManipulatingRelatio 
    hreeWaystoUseSQL
    SQLtoRPN
    TheLexer
    ScanningSQLKeywords
    ScanningNumbe 
    ScanningOperato andPunctuation
    ScanningFunctio andNames
    CommentsandMiscellany
    ThePa er
    TheTop-LevelPa ingRules
    SQLExpressio 
    SelectStatements
    DeleteStatement
    I ertandReplaceStatements
    UpdateStatement
    CreateDatabase
    CreateTable
    UserVariables
    ThePa erRoutines
    TheMakefilefortheSQLPa er
    Exercises

    5.AReferenceforFlexSpecificatio 
    StructureofaFlexSpecification
    DefinitionSection
    RulesSection
    UserSubroutines
    BEGIN
    C++Scanne 
    ContextSe itivity
    LeftContext
    RightContext
    Definitio (Substitutio )
    ECHO
    InputManagement
    StdioFileChaining
    InputBuffe 
    InputfromStrings
    FileNesting
    input()
    YY_INPUT
    FlexLibrary
    InteractiveandBatchScanne 
    LineNumbe andyylineno
    LiteralBlock
    MultipleLexe inOneProgram
    CombinedLexe 
    MultipleLexe 
    Optio WhenBuildingaScanner
    PortabilityofFlexLexe 
    PortingGeneratedCLexe 
    ReentrantScanne 
    ExtraDataforReentrantScanne 
    AccesstoReentrantScannerData
    ReentrantScanne ,NestedFiles,andMultipleScanne 
    UsingReentrantScanne withBison
    RegularExpressionSyntax
    Metacharacte 
    REJECT
    ReturningValuesfromyylex()
    StartStates
    unput()
    yyinput()yyunput()
    yyleng
    yyless()
    yylex()andYY_DECL
    yymore()
    yyrestart()
    yy_scan_stringandyy_scan_buffer
    YY_USER_ACTION
    yywrap()

    6.AReferenceforBisonSpecificatio 
    StructureofaBisonGrammar
    Symbols
    DefinitionSection
    RulesSection
    UserSubroutinesSection
    Actio 
    EmbeddedActio 
    SymbolTypesforEmbeddedActio 
    AmbiguityandConflicts
    TypesofConflicts
    Shift/ReduceConflicts
    Reduce/ReduceConflicts
    %expect
    GLRPa e 
    BugsinBisonPrograms
    InfiniteRecu ion
    InterchangingPrecedence
    EmbeddedActio 
    C++Pa e 
    %codeBlocks
    EndMarker
    ErrorTokenandErrorRecovery
    %destructor
    InheritedAttributes($0)
    SymbolTypesforInheritedAttributes
    %initial-action
    LexicalFeedback
    LiteralBlock
    LiteralToke 
    Locatio 
    %pa e-param
    PortabilityofBisonPa e 
    PortingBisonGramma 
    PortingGeneratedCPa e 
    Libraries
    CharacterCodes
    PrecedenceandAssociativityDeclaratio 
    Precedence
    Associativity
    PrecedenceDeclaratio 
    UsingPrecedenceandAssociativitytoResolveConflicts
    TypicalUsesofPrecedence
    Recu iveRules
    LeftandRightRecu ion
    Rules
    SpecialCharacte 
    %startDeclaration
    SymbolValues
    DeclaringSymbolTypes
    ExplicitSymbolTypes
    Toke 
    TokenNumbe 
    TokenValues
    %typeDeclaration
    %unionDeclaration
    VariantandMultipleGramma 
    CombinedPa e 
    MultiplePa e 
    Using%name-prefixorthe-pFlag
    Lexe forMultiplePa e 
    PurePa e 
    y.outputFiles
    BisonLibrary
    main()
    yyerror()
    YYABORT
    YYACCEPT
    YYBACKUP
    yyclearin
    yydebugandYYDEBUG
    YYDEBUG
    yydebug
    yyerrok
    YYERROR
    yyerror()
    yypa e()
    YYRECOVERING()

    7.AmbiguitiesandConflicts
    ThePointerModelandConflicts
    KindsofConflicts
    Pa erStates
    Contentsofname.output
    Reduce/ReduceConflicts
    Shift/ReduceConflicts
    ReviewofConflictsinname.output
    CommonExamplesofConflicts
    ExpressionGramma 
    IF/THEN/ELSE
    NestedListGrammar
    HowDoYouFixtheConflict?
    IF/THEN/ELSE(Shift/Reduce)
    LoopWithinaLoop(Shift/Reduce)
    ExpressionPrecedence(Shift/Reduce)
    LimitedLookahead(Shift/ReduceorReduce/Reduce)
    OverlapofAlternatives(Reduce/Reduce)
    Summary
    Exercises

    8.ErrorReportingandRecovery
    ErrorReporting
    Locatio 
    AddingLocatio tothePa er
    AddingLocatio totheLexer
    MoreSophisticatedLocatio withFilenames
    ErrorRecovery
    BisonErrorRecovery
    FreeingDiscardedSymbols
    ErrorRecoveryinInteractivePa e 
    WheretoPutErrorToke 
    CompilerErrorRecovery
    Exercises

    9.AdvancedFlexandBison
    PureScanne andPa e 
    PureScanne inFlex
    PurePa e inBison
    UsingPureScanne andPa e Together
    AReentrantCalculator
    GLRPa ing
    GLRVe ionoftheSQLPa er
    C++Pa e 
    AC++Calculator
    C++Pa erNaming
    AC++Pa er
    InterfacingaScannerwithaC++Pa er
    ShouldYouWriteYourPa erinC++?
    Exercises

    Appendix:SQLPa erGrammarandCross-Reference
    Glossary
    Index
查看详情
相关图书 / 更多
FLEX 与 BISON(影印版)
FLASH CC动画艺术设计案例教程(第4版)
赵君韬
FLEX 与 BISON(影印版)
FLASH CS6动画设计案例教程
秦菊、马义华、刘美芳 编
FLEX 与 BISON(影印版)
FLAC3D5.0使用教程与案例分析
林志斌 著
FLEX 与 BISON(影印版)
FLAC 3D实用教程 第2版
彭文斌
FLEX 与 BISON(影印版)
FLAC3D数值模拟方法及工程应用——深入剖析FLAC3D5.0(第二版)
王涛(等) 著
FLEX 与 BISON(影印版)
FLL+WRO乐高机器人竞赛教程——机械、巡线与PID
蔡冬冬、沈松华 著
FLEX 与 BISON(影印版)
FLASH动画创意设计项目实战
陈静
FLEX 与 BISON(影印版)
FLUENT 18.0案例分析视频精讲
张云杰
FLEX 与 BISON(影印版)
FLUENT化工流体计算与应用实例
作者
FLEX 与 BISON(影印版)
FLUENT19.0流场分析从入门到精通
胡仁喜、康士廷 著
FLEX 与 BISON(影印版)
FLY GUY READER COLLECTION (5 Books)苍蝇小子平装读本套装(五本)
Tedd Arnold(泰德·阿诺德) 著
FLEX 与 BISON(影印版)
FLASHCC动画设计与制作
张雅莉 编
您可能感兴趣 / 更多
FLEX 与 BISON(影印版)
宇宙视觉史:从宇宙大爆炸到时间的尽头
[美]查尔斯·刘 著;高爽 译者;[美]马克西姆· 马洛维奇科 绘;未读 出品
FLEX 与 BISON(影印版)
写出我心 普通人如何通过写作表达自己(平装本)
[美]娜塔莉·戈德堡(Natalie Goldberg)
FLEX 与 BISON(影印版)
写出我心3 写作疗愈的真正秘密
[美]娜塔莉·戈德堡(Natalie Goldberg)
FLEX 与 BISON(影印版)
神套路:为什么我们总被带节奏(狂热与网红时代醍醐灌顶之作,教给普通人安身立命的不二法门!)
[美]阿里·阿莫萨维 著;[哥伦比亚]亚历杭德罗·希拉尔多 绘
FLEX 与 BISON(影印版)
阿伦森自传
[美]埃利奥特·阿伦森(Elliot Aronson) 著;沈捷 译;湛庐文化 出品
FLEX 与 BISON(影印版)
街头官僚:公共服务中的个人困境
[美]迈克尔·李普斯基(Michael Lipsky)
FLEX 与 BISON(影印版)
史前至蒙古帝国时期的内欧亚大陆史
[美]大卫·克里斯蒂安 著;潘玲 译;杨建华 校
FLEX 与 BISON(影印版)
意大利文艺复兴新艺术史
[美]迈克尔·韦恩·科尔 著;[美]斯蒂芬·J·坎贝尔;邵亦杨
FLEX 与 BISON(影印版)
老人与海 彩图注音版 一二三四年级5-6-7-8-9岁小学生课外阅读经典 儿童文学无障碍有声伴读世界名著童话故事
[美]海明威
FLEX 与 BISON(影印版)
养育的觉醒:全面激发孩子自驱力,教你如何心平气和做妈妈
[美]凯文·莱曼 著;唐晓璐 译;斯坦威 出品
FLEX 与 BISON(影印版)
自律我也能做到(全9册)
[美]康妮·科维尔·米勒 著;[阿根廷]维多利亚·阿萨纳利 绘
FLEX 与 BISON(影印版)
你在等什么?
[美]斯科特·明钦 著;[中]易万 译;[美]马特 ·斐兰 绘