Jump to content

Modula-2: Difference between revisions

From EDM2
No edit summary
Line 43: Line 43:


==Standards==
==Standards==
There are five basic variations of the Modula 2 standard, the first four are simply the four editions of the book "Programming in Modula 2" by Niklaus Wirth and are commonly known as PIM1, PIM2 and so on, the fifth is an ISO standard called ISO 10514-1 that extends the language somewhat and in addition to the standard proper there have been some optional additions to the standard since it was originally submitted.
There are five basic variations of the Modula 2 standard, the first four are simply the four editions of the book "Programming in Modula 2" by Niklaus Wirth and are commonly known as PIM1, PIM2 and so on, the fifth is an ISO standard called ISO 10514-1 that extends the language somewhat and in addition to the standard proper there have been some optional additions to it since it was originally submitted, but the additions are rarely implemented.
* '''PIM1''' Original from 1979, no compiler apart from the original ETH m-code compiler is known to have implemented this version.
* '''PIM1''' Original from 1979, no compiler apart from the original ETH m-code compiler is known to have implemented this version.
* '''PIM2''' A few DOS, UCSD and CP/M compilers implemented this standard, although most DOS compilers got upgraded to PIM3.
* '''PIM2''' A few DOS, UCSD and CP/M compilers implemented this standard, although most DOS compilers got upgraded to PIM3.

Revision as of 20:42, 12 November 2014

Structured procedural language introduced by Niklaus Wirth in 1979, based on his earlier Pascal language but adds modular and incremental compilation, and a number of "programming in the large" features.

Modula 2 was hugely influential in the field of informatics and at the least 50 other languages have been based on it in addition to having a direct or indirect influence on languages like Basic, Java, C# and Object Pascal, amongst the more notable languages that have been based on M2 are Modula 3, Parallaxis, Yafl, Oberon, Oberon-2, IEC61131, Umbriel, Component Pascal and Zonnon.

A list of OS/2 implementations of Modula 2

A list of DOS implementations of Modula 2

A list of Modula 2 implementations that run under Win-OS/2

A list of Modula 2 implementations that run under Java

Publications

Articles

Tutorials and other learning material

Standards

There are five basic variations of the Modula 2 standard, the first four are simply the four editions of the book "Programming in Modula 2" by Niklaus Wirth and are commonly known as PIM1, PIM2 and so on, the fifth is an ISO standard called ISO 10514-1 that extends the language somewhat and in addition to the standard proper there have been some optional additions to it since it was originally submitted, but the additions are rarely implemented.

  • PIM1 Original from 1979, no compiler apart from the original ETH m-code compiler is known to have implemented this version.
  • PIM2 A few DOS, UCSD and CP/M compilers implemented this standard, although most DOS compilers got upgraded to PIM3.
  • PIM3 The third edition is by far the most popular amongst compiler makers, who by and large shun PIM4.
  • PIM4 The fourth edition, very few compilers implement this variant but one notable exception is the native OS/2 compiler Canterbury Modula 2. A HTML version of Wirth's fourth edition of "Programming in Modula-2" is available here
  • ISO10514-1 ISO standard Modula 2, slightly controversial since it adds quite a bit to the language, but most modern compilers implement this version. Adds a standardised library.
  • ISO10514-2 Adds an OOP layer
  • ISO10514-3 Adds generics