up | Inhaltsverzeichniss | Kommentar

Manual page for M2B(1)

m2b - Modula-2 beautifier

SYNOPSIS

m2b [ arg ] ... [ infile [ outfile ] ]

DESCRIPTION

M2b is a beautifier (i.e., formator) for Modula-2 programs. M2b accepts the revised Modula-2 grammar. Infile (default standard input) is formatted and stored in outfile (default standard output). The arguments are interpreted as follows:
-c
the following argument defines where comments are aligned (default 40).
-h
requests the header to be printed.
-l
the following argument defines the approximate output line length (default 80); zero length means no limit. Comments are not shortened.
-p
requests parameter lists to be piled.
-s
the following argument defines indentation width (default 3).
-v
requests variable declarations to be piled.

The options can also be set from within a Modula-2 source using a comment as follows:

(*%p+;c40*)
requests parameter lists to be piled and sets the comment column at 40. Blanks are not permitted, `%' signals the controlling comment, and `;' joins several options. All command line options are supported in this fashion.
(*%-*)
turns formating off. Subsequent text is passed through as is until `%+' is found.
%+
turns formating back on. Modula-2 syntax and formator operation must be nested properly.

M2b can be used as a filter.


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97