Programming in Modula-2Springer Science & Business Media, 06.12.2012 - 202 Seiten This text is an introduction to programming in general, and a manual for programmjng with the language Modula-2 in particular. It is oriented primarily towards people who have already acquired some basic knowledge of programming and would like to deepen their understanding in a more structured way. Nevertheless, an introductory chapter is included for the benefit of the beginner, displaying in a concise form some of the fundamental concepts of computers and their programming. The text is therefore also suitable as a self-contained tutorial. The notation used is Modula-2, which lends itself well for a structured approach and leads the student to a working style that has generally become known under the title of structured programming. As a manual for programming in Modula-2, the text covers practically all facilities of that language. Part 1 covers the basic notions of the variable, expression, assignment, conditional and repetitive statement, and array data structure. Together with Part 2 which introduces the important concept of the procedure or subroutine, it contains essentially the material commonly discussed in introductory programming courses. Part 3 concerns data types and structures and constitutes the essence of an advanced course on programming. Part 4 introduces the notion of the module, a concept that is fundamental to the design of larger programmed systems and to programming as team work. The most commonly used utility programs for input and output are presented as examples of modules. And finally, Part 5 covers facilities for system programming, device handling, and multiprogramming. |
Inhalt
| 5 | |
| 7 | |
| 9 | |
| 12 | |
Representation of Modula programs | 14 |
Statements and expressions | 17 |
Control structures | 20 |
Elementary data types | 27 |
Subrange types | 67 |
Set types | 68 |
Record types | 70 |
Records with variant parts | 73 |
Dynamic data structures and pointers | 76 |
Procedure types | 81 |
Part 4 | 83 |
Definition and implementation parts | 85 |
Constant and variable declarations | 35 |
The data structure Array | 36 |
Part 2 | 46 |
Procedures | 47 |
The concept of locality | 49 |
Parameters | 51 |
Function procedures | 54 |
Recursion | 57 |
Part 3 | 64 |
Enumeration types | 66 |
Program decomposition into modules | 89 |
Local modules | 97 |
Sequential input and output | 105 |
Screenoriented input and output | 114 |
Lowlevel facilities | 124 |
Report on the Programming Language Modula2 | 141 |
The Syntax of Modula2 171 | 170 |
GraphicWindows | 184 |
| 199 | |
Andere Ausgaben - Alle anzeigen
Häufige Begriffe und Wortgruppen
actual parameter algorithm ARRAY OF CHAR assignment base type BEGIN BITSET BOOLEAN buffer chapter character compiler consists CONST Constant Declaration ConstExpression coroutine data structure data type defined DEFINITION MODULE denoted designator device EBNF elements END END enumeration type example executed export expression facilities factor FALSE file system formal language formal parameter function procedure GetCh GetSym Hence id[i ident identifier IdentList implementation module InOut IMPORT input and output interpreters computers keyboard language lpar Modula-2 module Files nodes objects octal operands operating system ordinal number pointer type procedure declaration Procedure Heading qualident Read(ch real numbers recursion REPEAT repetition result return statement rules sequential SimpleExpression SimpleType so-called specified standard standard streams statement sequence storage stream string subrange type symbol syntactic syntax term termination TreePtr type CARDINAL type CHAR type declaration type INTEGER variant Window WordLength words WriteCard WriteLn WriteString
