Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pindent(1) — Sun Pascal 2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pc(1)

PINDENT(1)  —  USER COMMANDS

NAME

pindent − Pascal prettyprinter

SYNOPSIS

pindent [ −e ] [ −f ] [ −j ] [ −L ] [ −n ] [ −O ] [ −s ] [ −u ] [ −w ] [ −_ ] [ −23456789 ] name .p

DESCRIPTION

pindent is a prettyprinter for Pascal source code.  pindent generates a reformatted listing; thus

tutorial% pindent old.p > new.p

places a cleaned-up version of the program old.p in the file new.p.  pindent does not support the Sun Pascal compiler directives (for example, %if and %enable). 

OPTIONS

−e Eliminate include directives when reformatting a file; the include is replaced by the reformatted contents of the specified file. 

−f Fully parenthesize expressions. 

−j Left-justify all procedures and functions. 

−L Map all identifiers and keywords to lower case. 

−n Eject a new page as each file is included. 

−O Replace others: in case statements with an equivalent standard Pascal construction.  (This is used primarily in compiling TEX.) 

−s Strip comments from the input text. 

−u Card image mode; only the first 72 characters of input lines are used. 

−w Suppress warning diagnostics. 

−_ Underline keywords. 

−d Use d spaces (where d is a digit, 2 ≤ d ≤ 9) as the basic indenting unit.  The default is 4. 

FILES

name.p input file

name.i include file

name.h include file

/usr/lang/SC1.0/man1/pindent.1
this manual page

/usr/lang/SC1.0/pindent
Pascal prettyprinter

SEE ALSO

pc(1)

Sun Pascal User Guide

Sun Pascal Reference Manual

Sun Microsystems  —  Last change: 12 July 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026