资源描述:
《Formal Syntax And Semantics Of Programming La》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、FormalSyntaxandSemanticsofProgrammingLanguagesALaboratoryBasedApproachKennethSlonnegerUniversityofIowaBarryL.KurtzLouisianaTechUniversityAddison-WesleyPublishingCompanyReading,Massachusetts•MenloPark,California•NewYork•DonMills,OntarioWokingham,England•Amsterdam
2、•Bonn•Sydney•SingaporeTokyo•Madrid•SanJuan•Milan•ParisSeniorAcquisitionsEditor:TomStoneAssistantEditor:KathleenBillusProductionCoordinator:MarybethMooneyCoverDesigner:DianaC.CoeManufacturingCoordinator:EvelynBeatonTheproceduresandapplicationspresentedinthisbookh
3、avebeenincludedfortheirinstructionalvalue.Theyhavebeentestedwithcarebutarenotguaranteedforanyparticularpurpose.Thepublisherdoesnotofferanywar-rantiesorrepresentations,nordoesitacceptanyliabilitieswithrespecttotheprogramsorapplications.LibraryofCongressCataloging
4、-in-PublicationDataSlonneger,Kenneth.Formalsyntaxandsemanticsofprogramminglanguages:alaboratorybasedapproach/KennethSlonneger,BarryL.Kurtz.p.cm.Includesbibliographicalreferencesandindex.ISBN0-201-65697-31.Programminglanguages(Electroniccomputers)--Syntax.2.Progr
5、amminglanguages(Electroniccomputers)--Semantics.I.Kurtz,BarryL.II.Title.QA76.7.S591995005.13'1--dc2094-4203CIPReproducedbyAddison-Wesleyfromcamera-readycopysuppliedbytheauthors.Copyright©1995byAddison-WesleyPublishingCompany,Inc.Allrightsreserved.Nopartofthispub
6、licationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyformorbyanymeans,electronic,mechanical,photocopying,recording,orotherwise,withoutthepriorwrittenpermissionofthepublisher.PrintedintheUnitedStatesofAmerica.ISBN0-201-65697-312345678910-MA-979695D
7、edicationsTomyfather,RobertBarryL.KurtzToMarybethandmyfamilyKenSlonnegerContentsChapter1SPECIFYINGSYNTAX11.1GRAMMARSANDBNF2Context-FreeGrammars4Context-SensitiveGrammars8Exercises81.2THEPROGRAMMINGLANGUAGEWREN10Ambiguity12ContextConstraintsinWren13SemanticErrors
8、inWren15Exercises161.3VARIANTSOFBNF18Exercises201.4ABSTRACTSYNTAX21AbstractSyntaxTrees21AbstractSyntaxofaProgrammingLanguage23Exercises291.5FURTHERREADING30Chapter2IN