ptop.1 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .TH ptop 1 "30 may 1999" FreePascal "ptop source beautifier"
  2. .SH NAME
  3. ptop \- The FPC Pascal configurable source beautifier.
  4. Origin probably Pascal\-TO\-Pascal.
  5. .SH SYNOPSIS
  6. \fIptop\fP "[-v] [-i indent] [-b bufsize ][-c optsfile] infile outfile"
  7. .SH Description
  8. \fIptop\fP is a more or less configurable \fIsource beautifier\fP for pascal sources,
  9. and specially the ones supported by FPC (which are more or less TurboPascal or
  10. Delphi 2.0 compatible).
  11. .PP
  12. ptop belongs to the \fIFPC utils\fP package, which currently also contains ppdep, h2pas, ppudump
  13. and ppumove.
  14. .SH Usage
  15. ptop basically reformats "infile" and outputs the result to "outfile". ptop uses
  16. a configuration file explained further below, and can generate a default
  17. configurationfile for you to edit. (not needed if you use the defaults)
  18. .SH Options
  19. .IP \-h
  20. Writes a short description of these switches.
  21. .IP \-c
  22. read options from configuration file. A configuration file is not needed, ptop
  23. will revert to internal defaults then. See also \-g
  24. .IP \-i ident
  25. Sets the number of indent spaces used for BEGIN END; and other blocks.
  26. .IP \-b bufsize
  27. Sets the buffersize to bufsize. Default 255, 0 is considered non\-valid and ignored.
  28. .IP \-v
  29. be verbose. Currently only outputs the number of lines read/written and some error messages.
  30. .IP \-g ptop.cfg
  31. Writes a default configuration file to be edited to the file "ptop.cfg"
  32. .PP
  33. Try to play with ptop and its configfile until you find the effect you desire. The
  34. configurability and possibilities of ptop are quite large compared to shareware
  35. source beautifier found on e.g. SIMTEL.
  36. .PP
  37. .SH Acknowledgements
  38. The writer of the program, Michael van Canneyt, who also helped out explaining
  39. the format of ptop.cfg.
  40. .PP
  41. Questions/corrections can be mailed to fpc\[email protected]
  42. .PP
  43. Also thanks to the rest of the FPC development team.
  44. The program is a modernized (OOP, Streams, Delphi extensions) version based on a
  45. program by Peter Grogono, who in turn based his program on a Pascal pretty-printer written by Ledgard,
  46. Hueras, and Singer. See SIGPLAN Notices, Vol. 12, No. 7, July 1977,
  47. pages 101-105, and PP.DOC/HLP.
  48. .BR
  49. This version of PP developed under Pascal/Z V4.0 or later.
  50. Very minor modifications for Turbo Pascal made by Willett Kempton
  51. March 1984 and Oct 84. Runs under 8-bit Turbo or 16-bit Turbo.
  52. Toad Hall tweak, rewrite for TP 5, 28 Nov 89
  53. .SH SEE ALSO
  54. .IP "ptop config file"
  55. .BR ptop.cfg (5)
  56. .IP "Compiler"
  57. .BR ppc386 (1)
  58. .IP "Other FPC utils"
  59. .BR ppdep (1)
  60. .BR ppudump (1)
  61. .BR ppumove (1)
  62. .BR h2pas (1)