| | - Characteristics:
- Discipline and idea
- Digital hardware technology and the ideas of Von Neumann
- Incremental change of the program state as a function of time.
- Execution of computational steps in an order governed by control structures
- We call the steps for commands
- Straightforward abstractions of the way a traditional Von Neumann computer works
- Similar to descriptions of everyday routines, such as food recipes and car repair
- Typical commands offered by imperative languages
- Assignment, IO, procedure calls
- Language representatives
- Fortran, Algol, Pascal, Basic, C
- The natural abstraction is the procedure
- Abstracts one or more actions to a procedure, which can be called as a single command.
- "Procedural programming"
|
We use several names for the computational steps in an imperative language.
The word statement is often used with the special computer science meaning
'a elementary instruction in a source language'.
The word instruction is another possibility; We prefer to
devote this word the computational steps performed at the machine level.
We will use the word 'command' for the imperatives in a high level imperative programming
language. A procedure abstracts one or more actions to a procedure, which can be
activated as a single action. |