资源描述:
《principles of programming languages2007lecture外语英文电子书》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ComS342PrinciplesofProgrammingLanguagesSpring2007ComS342Lecturer:Dr.MarkusLumpeDepartmentofComputerScience113AtanasoffHallhttp://www.cs.iastate.edu/~cs342TR2-3:30,Gilman1104W9(1),Gilman0312W4(2),Gilman0312TA’s:N/AGrading:problemsets,2tests,finalexamAssig
2、nments:onaweeklybasisComS342OverviewTentativecourseprogram:Introduction–basicconceptsThealgorithmicprogramminglanguageSchemeInductivesetsofdataThelambda-calculus–thecorelanguageofsequentialprogrammingRecursionandfixedpointsTypereconstructionalgorit
3、hmsDataabstraction,representationstrategiesfordatatypesInterpretersTypes,typechecking,andtypeinferenceObjectsandclasses(optional)Continuation-Passingstyle(optional)ComS342TheAlgorithmicLanguageSchemeOverviewDrScheme,ChezScheme,SLIB,andEOPL2-extensi
4、onsFeaturesofSchemeExpressionsDatatypesProceduresReferences5RevisedReportontheAlgorithmicLanguageScheme.DanielP.FriedmanandMatthiasFelleisen,“TheLittleSchemer”,FourthEdition,MITPress,1996HaroldAbelsonetal.,“StructureandInterpretationofComputerProg
5、rams”,MITPress,1996DanielP.Friedmanetal.,“EssentialsofProgrammingLanguages”,SecondEdition,MITPress,2001ComS342ChezScheme,SLIB,andEOPL2-extensionsDrScheme(orChezScheme)isacompletehigh-performanceimplementationofANSI/IEEEstandardScheme.SLIBisaportableSc
6、hemelibrarymeanttoprovidecompatibilityandutilityfunctionsforallstandardSchemeimplementations.RunningChezScheme(ComS342):SCHEME_LIBRARY_PATH:TheSLIBlibrarydirectory.CS342LIB:TheEOPL2-extensionspathOneveryplatformusethecommand“scheme”tostartaninteracti
7、veScheme-session.Thefile“chez.prelude”defineseverythingyouneedtouseChezSchemeinComS342.Thisfileisloadedafter“chez.init”–theSLIBinitializationfile.ComS342DrSchemeComS342CS342ChezSchemeComS342SchemeSchemeisastaticallyscopedprogramminglanguage.Eachuseofa
8、variableisassociatedwithalexicallyapparentbindingofthatvariable.Schemeisadynamicallytypedlanguage.Typesareassociatedwithvaluesratherthanwithvariables.Schemehaslatentasopposedtomanifesttypes.AllobjectsinthecourseofaSche