Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 System:
pm2


NAME

pm2 - translate ISO-Pascal to Modula-2

SYNOPSIS

pm2 ('-' | input-file) [output-file]

DESCRIPTION

pm2 translates a ISO-Pascal source contained in input-file (or coming from standard input if - is given instead) into Modula-2 which may be passed later on to m2c. The output is written to standard output or to output-file if given.

Note that Modula-2 sources generated by pm2 need a library module named Pascal which is to be found in /usr/local/lib/pm2.

EXAMPLE

Compiling a Pascal program which is to be found in xxx.p:
pm2 xxx.p xxx.m2 && MODPATH=/usr/local/lib/pm2 m2c -o xxx xxx.m2

DIAGNOSTICS

pm2 prints error messages on standard error and stops immediately in case of errors.

AUTHOR

The translator has been written by Armin Rutzen, this manual page is due to Andreas Borchert.

SEE ALSO

m2c

BUGS

pm2 offers no error recovery techniques and supports ISO-Pascal only.
Edited by: borchert, last change: 1997/03/06, revision: 1.1, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine