Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!ames!oliveb!pyramid!decwrl!adobe!greid From: greid@adobe.com (Glenn Reid) Newsgroups: comp.lang.postscript Subject: Re: Wanted: a PostScript pretty-printer Keywords: postscript Message-ID: <363@adobe.UUCP> Date: 30 Jan 89 17:27:11 GMT References: <477@grand.UUCP> Sender: news@adobe.COM Reply-To: greid@adobe.COM (Glenn Reid) Organization: Adobe Systems Incorporated, Mountain View Lines: 30 In article <477@grand.UUCP> day@grand.UUCP (Dave Yost) writes: >Anyone know of a PostScript pretty-printer? > >Anyone want to start a discussion of PS indenting style? (heh, heh) > > --dave yost I have written a PostScript pretty-printer, sort of. It doesn't actually print the output, it returns it to you as a file. This is useful for reformatting a program that has been compressed or written to fill a very small amount of bytes, if you have to work on it or understand it. My program was written with the Unix "lex" utility, although I think the resulting C program should work elsewhere. You can get a copy from our file server as follows: To: ps-file-server@adobe.COM From: you Subject: please -------- send Programs psformat.shar It is in "shar" format, which means it needs to get fed to /bin/sh. Oh, and it roughly enforces my idea of PS indenting style, for whatever it's worth (heh, heh). Cheers, Glenn Reid Adobe Systems