Library / Science

Introduction to Programming LanguagesWikibooks contributors

Introduction to Programming Languages

by Wikibooks contributors

ScienceEnglishTextbookFree to read · CC BY-SA 4.0

An open computer science textbook written by volunteers on Wikibooks.

PriceFree
Pages134
Reads0
Words43,020

“Introduction to Programming Languages” by Wikibooks contributors (see the page history at en.wikibooks.org), licensed CC BY-SA 4.0. Images come from Wikimedia Commons under their own free licences. Converted to Nwoma's reader format.

Licence: CC BY-SA 4.0 · Source: Wikibooks
Contents (290)
PrefacePrefaceProgramming Language ParadigmsProgramming Language ParadigmsImperative LanguagesDeclarative LanguagesProgramming Paradigm as a Programmer's choiceGrammarsGrammarsParsingParsingAmbiguityAmbiguityPrecedence and AssociativityPrecedence and AssociativityLogic GrammarsLogic GrammarsAttribute GrammarsSyntax Directed InterpretationSyntax Directed InterpretationSyntax Directed TranslationSyntax Directed TranslationSyntax Directed Type CheckingSyntax Directed Type CheckingCompiled ProgramsCompiled ProgramsThe life cycle of a compiled programInterpreted ProgramsInterpreted ProgramsAdvantages and disadvantages of interpretation over compilationVirtual MachinesJust-in-Time CompilationBindingBindingConcepts of Functional LanguagesConcepts of Functional LanguagesType DefinitionData TypesPrimitive TypesPrimitive TypesConstructed TypesConstructed TypesEnumerationsTuplesRecordsListsArraysAssociative ArraysClassesUnionsFunction TypesType AnnotationsType AnnotationsSML ExampleJava ExampleIntrinsic TypesSML (Standard ML)JavaPrologPythonSimple Type InferenceJavaCExtreme Type InferenceSML / ML ExampleJava (limited)Python (dynamic)Type Comparison Across LanguagesType CheckingStatic Type CheckingSML Example:Java Example:Python Example:Prolog Example:Dynamic TypingPython Example:Prolog Example:SML / JavaStatic vs DynamicStatically typed languages also use runtime checks:Dynamically typed languages also use static information:Python Example:Runtime Type InformationExplicit Runtime Type TestsJavaPythonStrong vs Weak TypingStrong TypingWeak TypingType Equivalence IssuesMotivating Example (Type Equivalence Context)Central Question in Type SystemsLanguages that expose representationPythonPrologLanguages that hide representationSMLJavaImpact on Type SystemsPolymorphisWhat is Polymorphism?Ad Hoc PolymorphismAd-Hoc PolymorphismOverloadingCoercionUniversal PolymorphismUniversal PolymorphismParametric PolymorphismSubtyping PolymorphismOverloadingOverloadingCoercionCoercionParametric PolymorphismParametric polymorphismSubtype PolymorphismSubtype PolymorphismDefinition and ExamplesDefinition and ExamplesClosures

Reviews

Sign in to rate and review this book.

No reviews yet. Be the first to share what you think.

More by Wikibooks contributors