1
.TH ptop 1 "30 may 1999" "Free Pascal" "ptop source beautifier"
3
ptop \- The FPC Pascal configurable source beautifier.
5
Origin probably Pascal\-TO\-Pascal.
9
.BI ptop "[-v] [-i indent] [-b bufsize ][-c optsfile] infile outfile"
14
is a more or less configurable
15
.I "source beautifier"
16
for pascal sources, and specially the ones supported by FPC (which are
17
more or less Turbo Pascal or Delphi 2.0 compatible).
21
package, which currently also contains
34
basically reformats "infile" and outputs the result to "outfile".
35
ituses a configuration file explained further below, and can generate a default
36
configurationfile for you to edit. (not needed if you use the defaults)
41
Writes a short description of these switches.
44
read options from configuration file. A configuration file is not needed, ptop
45
will revert to internal defaults then. See also \-g
48
Sets the number of indent spaces used for BEGIN END; and other blocks.
51
Sets the buffersize to bufsize. Default 255, 0 is considered non\-valid and ignored.
54
be verbose. Currently only outputs the number of lines read/written and some error messages.
57
Writes a default configuration file to be edited to the file
61
Try to play with ptop and its configfile until you find the effect you desire. The
62
configurability and possibilities of ptop are quite large compared to shareware
63
source beautifier found on e.g. SIMTEL.
68
The writer of the program, Michael van Canneyt, who also helped out explaining
69
the format of ptop.cfg.
71
Questions/corrections can be mailed to fpc\-devel@vekoll.saturnus.vein.hu
73
Also thanks to the rest of the FPC development team.
75
The program is a modernized (OOP, Streams, Delphi extensions) version based on a
76
program by Peter Grogono, who in turn based his program on a Pascal pretty-printer written by Ledgard,
77
Hueras, and Singer. See SIGPLAN Notices, Vol. 12, No. 7, July 1977,
78
pages 101-105, and PP.DOC/HLP.
80
This version of PP developed under Pascal/Z V4.0 or later.
81
Very minor modifications for Turbo Pascal made by Willett Kempton
82
March 1984 and Oct 84. Runs under 8-bit Turbo or 16-bit Turbo.
83
Toad Hall tweak, rewrite for TP 5, 28 Nov 89
87
.IP "ptop config file"