Skip to main content
  • Book
  • © 1985

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 (32 chapters)

  1. Front Matter

    Pages i-2
  2. Preface

    1. Preface

      • Niklaus Wirth
      Pages 3-5
  3. Part 1

    1. Introduction

      • Niklaus Wirth
      Pages 7-8
    2. A first example

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

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

      • Niklaus Wirth
      Pages 17-19
    5. Control structures

      • Niklaus Wirth
      Pages 20-26
    6. Elementary data types

      • Niklaus Wirth
      Pages 27-34
    7. Constant and variable declarations

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

      • Niklaus Wirth
      Pages 36-46
  4. Part 2

    1. Procedures

      • Niklaus Wirth
      Pages 47-48
    2. The concept of locality

      • Niklaus Wirth
      Pages 49-50
    3. Parameters

      • Niklaus Wirth
      Pages 51-53
    4. Function procedures

      • Niklaus Wirth
      Pages 54-56
    5. Recursion

      • Niklaus Wirth
      Pages 57-63
  5. Part 3

    1. Type Declarations

      • Niklaus Wirth
      Pages 64-65
    2. Enumeration types

      • Niklaus Wirth
      Pages 66-66
    3. Subrange types

      • Niklaus Wirth
      Pages 67-67
    4. Set types

      • Niklaus Wirth
      Pages 68-69

About this book

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.

Authors and Affiliations

  • Institut für Informatik, Zurich, 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