Skip to content

m2sf/m2pp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m2pp

Modula-2 Preprocessor

M2PP is a simple preprocessor for the Modula-2 language.

It generates Modula-2 source files from generic Modula-2 source file templates. Its primary purpose is to provide a means to write and maintain dialect independent code that is portable across different Modula-2 dialects. However, it can also be used for generic programming where the Modula-2 dialect or compiler does not support generics.

M2PP is itself portable across dialects (PIM3, PIM4, ISO) and compilers (see below). Where necessary, adaptation libraries are provided. Thus far the following compilers are specifically supported:

Further, any Modula-2 compiler that supports PIM3/4 and includes modules FileSystem, Storage and Terminal should be able to compile M2PP without problems, for example:

  • FST Modula-2
  • Logitech Modula-2
  • M2F Modula-2
  • TERRA Modula-2

Adaptation libraries for Aglet Modula-2 and Clarion (formerly TopSpeed) Modula-2 are still missing and shall be added later (contributors welcome).

For more details please visit the project wiki at the URL:

https://github.com/m2sf/m2pp/wiki

+++