ptop(1)
π ptop(1) β the FPC Pascal source beautifier, bestie edition β¨
okay so like. <rainbow>ptop</rainbow> is the FPC Pascal configurable source beautifier. That's the whole name. And its origin? Probably Pascal-TO-Pascal, which is honestly such a glow-up story. π¦
β¨ SYNOPSIS β¨
ptop[-v][-iindent][-bbufsize][-coptsfile]<infile><outfile>
like yes that's a lot of brackets, we'll get through it together, breathe π«Ά
πΈ DESCRIPTION πΈ
So <pink>ptop</pink> is a more-or-less configurable source beautifier for Pascal sources, and especially the ones that FPC supports β which are more or less Turbo Pascal or Delphi 2.0 compatible. So basically if your code is giving chaos gremlin energy, ptop is the friend who shows up with a hairbrush. π
ptop belongs to the FPC utils package, which currently also contains ppdep, h2pas, ppudump and ppumove. it's a whole friend group, they're all iconic in their own way. π
π« Usage π«
ptop basically reformats infile and outputs the result to outfile. It uses a configuration file explained further below, and it can generate a default configuration file for you to edit. (not needed if you use the defaults β lowkey just run it, bestie) π
π Options π
-hβ writes a short description of these switches. a little "hi hello here's what I do" moment. π-cβ read options from the configuration file. a configuration file is not needed tho; ptop will revert to internal defaults then. See also-g.-iident β sets the number of indent spaces used forBEGIN END;and other blocks. this is where you decide how much breathing room your code gets. π«-bbufsize β sets the buffersize to bufsize. Default255. And heads up:0is considered non-valid and ignored. so don't try it, it will simply not be the moment. π-vβ be verbose. Currently only outputs the number of lines read/written and some error messages. she's chatty but only a little. π£οΈ-gptop.cfg β writes a default configuration file to be edited to the fileptop.cfg. go ahead, customize, make it yours. π¨
Try to play with ptop and its configfile until you find the effect you desire. The configurability and possibilities of ptop are quite large compared to shareware source beautifiers found on e.g. SIMTEL. like genuinely, she has range. π
π«Ά Acknowledgements π«Ά
The writer of the program, Michael van Canneyt, who also helped out explaining the format of ptop.cfg. literal king behavior, no cap. π
Questions/corrections can be mailed to fpc-devel@vekoll.saturnus.vein.hu β slide into the inbox if something's off. π¬
Also thanks to the rest of the FPC development team. the whole squad. π«
The program is a modernized (OOP, Streams, Delphi extensions) version based on a program by Peter Grogono, who in turn based his program on a Pascal pretty-printer written by Ledgard, Hueras, and Singer. See SIGPLAN Notices, Vol. 12, No. 7, July 1977, pages 101-105, and PP.DOC/HLP. This version of PP developed under Pascal/Z V4.0 or later. Very minor modifications for Turbo Pascal made by Willett Kempton March 1984 and Oct 84. Runs under 8-bit Turbo or 16-bit Turbo. Toad Hall tweak, rewrite for TP 5, 28 Nov 89. it's giving ancestry.com for compilers, honestly. π³β¨
π¦ SEE ALSO π¦
- ptop config file β
ptop.cfg(5) - Compiler β
ppc386(1) - Other FPC utils β
ppdep(1)ppudump(1)ppumove(1)h2pas(1)
and that's the whole page, bestie!! this one came from Free Pascal, dated 30 may 1999 β vintage but still serving, we love to see it. πβ¨π¦
π¦ where this page comes from
- arch rolling: fpc 3.2.2-11 Β· GPL AND LGPL AND custom
- epel 10: fpc 3.2.2-20.el10_1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later WITH Independent-modules-exception
- epel 9: fpc 3.2.2-10.el9 Β· GPLv2+ and LGPLv2+ with exceptions
- fedora 43: fpc 3.2.2-20.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later WITH Independent-modules-exception
- fedora 43: fpc 3.2.2-20.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later WITH Independent-modules-exception
- fedora 44: fpc 3.2.4~rc1-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later WITH Independent-modules-exception
- fedora 44: fpc 3.2.4~rc1-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later WITH Independent-modules-exception
- nixos 26.05: fpc 3.2.2
- nixos 26.05: lazarus-gtk2 4.4-0
- nixos 26.05: lazarus-qt5 4.4-0
- nixos 26.05: lazarus-qt6 4.4-0
- nixpkgs unstable: fpc 3.2.2
- nixpkgs unstable: lazarus-cocoa 4.8-0
- nixpkgs unstable: lazarus-gtk3 4.8-0
- nixpkgs unstable: lazarus-qt5 4.8-0
- nixpkgs unstable: lazarus-qt6 4.8-0
- opensuse-leap 16.0: fpc 3.2.2-bp160.1.35 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: fpc 3.2.2-bp160.1.35 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: fpc 3.2.2-bp160.1.35 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms