Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!inria!seti!minos!jourdan From: jourdan@minos.inria.fr (Martin Jourdan) Newsgroups: comp.lang.pascal Subject: Re: Pascal Source Code Beautifier Wanted Message-ID: <1594@seti.inria.fr> Date: 10 Sep 90 08:52:38 GMT References: <7020008@hpcupt1.HP.COM> Sender: news@seti.inria.fr Reply-To: jourdan@minos.inria.fr Organization: INRIA, Rocquencourt, France Lines: 36 In article <7020008@hpcupt1.HP.COM>, mdovi@hpcupt1.HP.COM (Mark Dovi) writes: => Does anyone out there know of a pascal source code beautifier? I am => looking for something that works like the "cb" command but for pascal. Your reference to "cb" lets me think that you're using a Unix system. Well, if you have the Berkeley Pascal compiler, then you can use the companion program "pxp" to suit your needs. Erxcept from the man page on my Sun: NAME pxp - Pascal execution profiler and prettyprinter SYNOPSIS pxp [ -acdefjLnOstuw_ ] [ -23456789 ] [ -z [ name ... ] ] name.p DESCRIPTION pxp can be used to obtain execution profiles of Pascal pro- grams or as a prettyprinter. To produce an execution pro- file all that is necessary is to translate the program specifying the z option to pc, execute the program, and then type the command tutorial% pxp -z name.p pxp generates a reformatted listing if none of the c, t, or z options are specified; thus tutorial% pxp old.p > new.p places a cleaned-up version of the program in old.p in the file new.p. I hope tthis helps. Martin Jourdan , INRIA, Rocquencourt, France. Why do we need all these %$#@%$# disclaimers?!?