1ptop(1)                     ptop source beautifier                     ptop(1)
2
3
4

NAME

6       ptop - The FPC Pascal configurable source beautifier.
7
8       Origin probably Pascal-TO-Pascal.
9
10

SYNOPSIS

12       ptop[-v][-iindent][-bbufsize][-coptsfile]<infile><outfile>
13
14

Description

16       ptop  is  a  more  or  less  configurable  source beautifier for pascal
17       sources, and specially the ones supported by FPC  (which  are  more  or
18       less Turbo Pascal or Delphi 2.0 compatible).
19
20       ptop  belongs  to  the FPC utils package, which currently also contains
21       ppdep , h2pas , ppudump and ppumove
22
23

Usage

25       ptop basically reformats "infile" and outputs the result to  "outfile".
26       ituses a configuration file explained further below, and can generate a
27       default configurationfile for you to edit. (not needed if you  use  the
28       defaults)
29
30

Options

32       -h     Writes a short description of these switches.
33
34       -c     read  options  from  configuration file. A configuration file is
35              not needed, ptop will revert to internal defaults then. See also
36              -g
37
38       -i ident
39              Sets  the  number of indent spaces used for BEGIN END; and other
40              blocks.
41
42       -b bufsize
43              Sets the buffersize to bufsize. Default  255,  0  is  considered
44              non-valid and ignored.
45
46       -v     be   verbose.   Currently  only  outputs  the  number  of  lines
47              read/written and some error messages.
48
49       -g ptop.cfg
50              Writes a default configuration file to be  edited  to  the  file
51              ptop.cfg
52
53
54       Try  to play with ptop and its configfile until you find the effect you
55       desire. The configurability and possibilities of ptop are  quite  large
56       compared to shareware source beautifier found on e.g. SIMTEL.
57

Acknowledgements

59       The  writer  of  the  program, Michael van Canneyt, who also helped out
60       explaining the format of ptop.cfg.
61
62       Questions/corrections  can   be   mailed   to   fpc-devel@vekoll.satur‐
63       nus.vein.hu
64
65       Also thanks to the rest of the FPC development team.
66
67       The  program  is a modernized (OOP, Streams, Delphi extensions) version
68       based on a program by Peter Grogono, who in turn based his program on a
69       Pascal pretty-printer written by Ledgard, Hueras, and Singer.  See SIG‐
70       PLAN Notices, Vol. 12, No. 7, July 1977, pages 101-105, and PP.DOC/HLP.
71        This version of PP developed under Pascal/Z V4.0 or later.  Very minor
72       modifications for Turbo Pascal made by Willett Kempton March  1984  and
73       Oct  84.  Runs under 8-bit Turbo or 16-bit Turbo.  Toad Hall tweak, re‐
74       write for TP 5, 28 Nov 89
75
76
77

SEE ALSO

79       ptop config file
80              ptop.cfg(5)
81
82       Compiler
83              ppc386(1)
84
85       Other FPC utils
86              ppdep(1) ppudump(1) ppumove(1) h2pas(1)
87
88
89
90Free Pascal                       30 may 1999                          ptop(1)
Impressum