Book contents
- Frontmatter
- Contents
- Preface
- Part 1 Functions and Foundations
- 1 Introduction
- 2 Computability
- 3 Lisp: Functions, Recursion, and Lists
- 4 Fundamentals
- Part 2 Procedures, Types, Memory Management, and Control
- Part 3 Modularity, Abstraction, and Object-Oriented Programming
- Part 4 Concurrency and Logic Programming
- Appendix A Additional Program Examples
- Glossary
- Index
4 - Fundamentals
from Part 1 - Functions and Foundations
Published online by Cambridge University Press: 05 June 2012
- Frontmatter
- Contents
- Preface
- Part 1 Functions and Foundations
- 1 Introduction
- 2 Computability
- 3 Lisp: Functions, Recursion, and Lists
- 4 Fundamentals
- Part 2 Procedures, Types, Memory Management, and Control
- Part 3 Modularity, Abstraction, and Object-Oriented Programming
- Part 4 Concurrency and Logic Programming
- Appendix A Additional Program Examples
- Glossary
- Index
Summary
In this chapter some background is provided on programming language implementation through brief discussions of syntax, parsing, and the steps used in conventional compilers. We also look at two foundational frameworks that are useful in programming language analysis and design: lambda calculus and denotational semantics. Lambda calculus is a good framework for defining syntactic concepts common to many programming languages and for studying symbolic evaluation. Denotational semantics shows that, in principle, programs can be reduced to functions.
A number of other theoretical frameworks are useful in the design and analysis of programming languages. These range from computability theory, which provides some insight into the power and limitations of programs, to type theory, which includes aspects of both syntax and semantics of programming languages. In spite of many years of theoretical research, the current programming language theory still does not provide answers to some important foundational questions. For example, we do not have a good mathematical theory that includes higher-order functions, state transformations, and concurrency. Nonetheless, theoretical frameworks have had an impact on the design of programming languages and can be used to identify problem areas in programming languages. To compare one aspect of theory and practice, we compare functional and imperative languages in Section 4.4.
COMPILERS AND SYNTAX
A program is a description of a dynamic process. The text of a program itself is called its syntax; the things a program does comprise its semantics.
- Type
- Chapter
- Information
- Concepts in Programming Languages , pp. 48 - 90Publisher: Cambridge University PressPrint publication year: 2002