Skip to main content
  • Book
  • © 1983

Programming in Modula-2

Authors:

Part of the book series: Monographs in Computer Science (MCS)

Buy it now

Buying options

eBook USD 74.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (33 chapters)

  1. Front Matter

    Pages i-1
  2. Preface

    1. Preface

      • Niklaus Wirth
      Pages 3-4
  3. Part 1

    1. Introduction

      • Niklaus Wirth
      Pages 5-6
    2. A first example

      • Niklaus Wirth
      Pages 7-9
    3. Representation of Modula programs

      • Niklaus Wirth
      Pages 12-14
    4. Statements and expressions

      • Niklaus Wirth
      Pages 15-17
    5. Control Structures

      • Niklaus Wirth
      Pages 18-23
    6. Elementary data types

      • Niklaus Wirth
      Pages 24-31
    7. Constant and variable declarations

      • Niklaus Wirth
      Pages 32-32
    8. The data structure Array

      • Niklaus Wirth
      Pages 33-43
  4. Part 2

    1. Procedures

      • Niklaus Wirth
      Pages 44-45
    2. The concept of locality

      • Niklaus Wirth
      Pages 46-47
    3. Parameters

      • Niklaus Wirth
      Pages 48-50
    4. Function procedures

      • Niklaus Wirth
      Pages 51-53
    5. Recursion

      • Niklaus Wirth
      Pages 54-60
  5. Part 3

    1. Type Declarations

      • Niklaus Wirth
      Pages 61-62
    2. Enumeration types

      • Niklaus Wirth
      Pages 63-63
    3. Subrange types

      • Niklaus Wirth
      Pages 64-64
    4. Set types

      • Niklaus Wirth
      Pages 65-66

About this book

This text is an introduction to programming in general, and a manual for programming 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.

Authors and Affiliations

  • Institut für Informatik, ETH, Zürich, Switzerland

    Niklaus Wirth

Bibliographic Information

Buy it now

Buying options

eBook USD 74.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access