关闭

关闭

关闭

封号提示

内容

首页 [Lisp相关文档].Land.of.Lisp.pdf

[Lisp相关文档].Land.of.Lisp.pdf

[Lisp相关文档].Land.of.Lisp.pdf

上传者: 冥顽不灵 2010-12-18 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《[Lisp相关文档].Land.of.Lisppdf》,可适用于IT/计算机领域,主题内容包含ConradBarski,MDLANDOFLISPLANDOFLISPLearntoPrograminLisp,OneGameataTime!byC符等。

ConradBarski,MDLANDOFLISPLANDOFLISPLearntoPrograminLisp,OneGameataTime!byConradBarski,MDSanFranciscoLANDOFLISPCopyrightbyConradBarski,MDAllrightsreservedNopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisherPrintedinCanadaISBN:ISBN:Publisher:WilliamPollockProductionEditors:AnselStatonandSerenaYangDevelopmentalEditor:KeithFancherTechnicalReviewers:PhilipFominykhandHeowEideGoodmanCopyeditor:MarilynSmithCompositor:SusanGlinertStevensProofreader:LindaSeifertIndexer:NancyGuentherForinformationonbookdistributorsortranslations,pleasecontactNoStarchPress,Incdirectly:NoStarchPress,IncRingoldStreet,SanFrancisco,CAphone:fax:infonostarchcomwwwnostarchcomLibraryofCongressCataloginginPublicationDataBarski,ConradLandofLisp:learntoprograminLisp,onegameatatime!byConradBarskipcmIncludesindexISBN:ISBN:ComputergamesProgrammingCOMMONLISP(Computerprogramlanguage)LISP(Computerprogramlanguage)ITitleQACB'dcNoStarchPressandtheNoStarchPresslogoareregisteredtrademarksofNoStarchPress,IncOtherproductandcompanynamesmentionedhereinmaybethetrademarksoftheirrespectiveownersRatherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weareusingthenamesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademarkTheinformationinthisbookisdistributedonan“AsIs”basis,withoutwarrantyWhileeveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthornorNoStarchPress,IncshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinitForLaurenBRIEFCONTENTSAcknowledgmentsxviiIntroductionSECTIONI:LISPISPOWERChapter:GettingStartedwithLispChapter:CreatingYourFirstLispProgramChapter:ExploringtheSyntaxofLispCodeSECTIONII:LISPISSYMMETRYChapter:MakingDecisionswithConditionsChapter:BuildingaTextGameEngineChapter:InteractingwiththeWorld:ReadingandPrintinginLispChapter:lambda:AFunctionSoImportantItDeservesItsOwnChapterChapter:GoingBeyondBasicListsChapter:ThisAin’tYourDaddy’sWumpusChapter:AdvancedDatatypesandGenericProgrammingviiiBriefContentsSECTIONIII:LISPISHACKINGChapter:LoopingwiththeloopCommandChapter:PrintingTextwiththeformatFunctionChapter:WorkingwithStreamsChapter:Let’sCreateaWebServer!FunctionalProgrammingIsBeautifulSECTIONIV:LISPISSCIENCEChapter:RampingLispUpaNotchwithFunctionalProgrammingChapter:DiceofDoom,aGameWrittenintheFunctionalStyleChapter:TheMagicofLispMacrosChapter:DomainSpecificLanguagesChapter:LazyProgrammingChapter:CreatingaGraphical,WebBasedVersionofDiceofDoomChapter:MakingDiceofDoomMoreFunEpilogueIndexCONTENTSINDETAILACKNOWLEDGMENTSxviiINTRODUCTIONWhatMakesLispSoCoolandUnusualIfLispIsSoGreat,WhyDon’tMorePeopleUseItWhereDidLispComeFromWhereDoesLispGetItsPowerSECTIONI:LISPISPOWERGETTINGSTARTEDWITHLISPLispDialectsATaleofTwoLispsUpandComingLispsLispDialectsUsedforScriptingANSICommonLispGettingStartedwithCLISPInstallingCLISPStartingUpCLISPWhatYou’veLearnedCREATINGYOURFIRSTLISPPROGRAMTheGuessMyNumberGameDefiningGlobalVariablesinLispDefiningthesmallandbigVariablesAnAlternativeGlobalVariableDefinitionFunctionBasicLispEtiquetteDefiningGlobalFunctionsinLispDefiningtheguessmynumberFunctionDefiningthesmallerandbiggerFunctionsDefiningthestartoverFunctionDefiningLocalVariablesinLispDefiningLocalFunctionsinLispWhatYou’veLearnedxContentsinDetailEXPLORINGTHESYNTAXOFLISPCODESyntaxandSemanticsTheBuildingBlocksofLispSyntaxSymbolsNumbersStringsHowLispDistinguishesBetweenCodeandDataCodeModeDataModeListsinLispConsCellsListFunctionsNestedListsWhatYou’veLearnedSECTIONII:LISPISSYMMETRYMAKINGDECISIONSWITHCONDITIONSTheSymmetryofniland()EmptyEqualsFalseTheFourDisguisesof()TheConditionals:ifandBeyondOneThingataTimewithifGoingBeyondif:ThewhenandunlessAlternativesTheCommandThatDoesItAll:condBranchingwithcaseCoolTrickswithConditionsUsingtheStealthConditionalsandandorUsingFunctionsThatReturnMorethanJusttheTruthComparingStuff:eq,equal,andMoreWhatYou’veLearnedBUILDINGATEXTGAMEENGINETheWizard’sAdventureGameOurGameWorldBasicRequirementsDescribingtheScenerywithanAssociationListDescribingtheLocationDescribingthePathsHowQuasiquotingWorksDescribingMultiplePathsatOnceDescribingObjectsataSpecificLocationListingVisibleObjectsDescribingVisibleObjectsContentsinDetailxiDescribingItAllWalkingAroundinOurWorldPickingUpObjectsCheckingOurInventoryWhatYou’veLearnedINTERACTINGWITHTHEWORLD:READINGANDPRINTINGINLISPPrintingandReadingTextPrintingtotheScreenSayingHellototheUserStartingwithprintandreadReadingandPrintingStufftheWayHumansLikeItTheSymmetryBetweenCodeandDatainLispAddingaCustomInterfacetoOurGameEngineSettingUpaCustomREPLWritingaCustomreadFunctionWritingagameevalFunctionWritingagameprintFunctionTryingOutOurFancyNewGameInterfaceTheDangersofreadandevalWhatYou’veLearnedLAMBDA:AFUNCTIONSOIMPORTANTITDESERVESITSOWNCHAPTERWhatlambdaDoesWhylambdaIsSoImportantWhatYou’veLearnedGOINGBEYONDBASICLISTSExoticListsDottedListsPairsCircularListsAssociationListsCopingwithComplicatedDataVisualizingTreelikeDataVisualizingGraphsCreatingaGraphGeneratingtheDOTInformationTurningtheDOTFileintoaPictureCreatingaPictureofOurGraphCreatingUndirectedGraphsWhatYou’veLearnedxiiContentsinDetailTHISAIN’TYOURDADDY’SWUMPUSTheGrandTheftWumpusGameDefiningtheEdgesofCongestionCityGeneratingRandomEdgesLoopingwiththeloopCommandPreventingIslandsBuildingtheFinalEdgesforCongestionCityBuildingtheNodesforCongestionCityInitializingaNewGameofGrandTheftWumpusDrawingaMapofOurCityDrawingaCityfromPartialKnowledgeWalkingAroundTownLet’sHuntSomeWumpus!WhatYou’veLearnedADVANCEDDATATYPESANDGENERICPROGRAMMINGArraysWorkingwithArraysUsingaGenericSetterArraysvsListsHashTablesWorkingwithHashTablesReturningMultipleValuesHashTablePerformanceAFasterGrandTheftWumpusUsingHashTablesCommonLispStructuresWorkingwithStructuresWhentoUseStructuresHandlingDatainaGenericWayWorkingwithSequences

用户评论(2)

0/200

精彩专题

上传我的资料

每篇奖励 +2积分

资料评价:

/49
仅支持在线阅读

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部