Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!ucsfcgl!seibel From: seibel@cgl.ucsf.edu (George Seibel) Newsgroups: comp.software-eng Subject: Re: Flexible Prettyprinters, an example... Message-ID: <10909@cgl.ucsf.EDU> Date: 26 May 88 07:26:59 GMT References: <1420008@hpldola.HP.COM> Sender: daemon@cgl.ucsf.edu Reply-To: seibel@hegel.mmwb.ucsf.edu.UUCP (George Seibel) Organization: UCSF Computer Graphics Lab Lines: 33 In article <1420008@hpldola.HP.COM> winter@hpldola.HP.COM (Kirt Winter) writes: [...much good stuff deleted] > >Flexible prettyprinters are avalable for some languages. One exists for >LISP, but uses "deformat" statements for each user-defined feature, not >anything approaching the "learn by example" method. One exists for the >Logitech Modula II compiler (and is included with the package), which takes >one sample file, modified by the user, and "learns" from that. Ones for >C are probably on the horizon. Here's one for FORTRAN. (yeah, I know, why would a FoRtRaN programmer be reading comp.software-eng?!) Pretty-printing is one of the functions of TOOLPACK, along with a macro processor, global inter-procedural analysis, coverage analysis, and other nice things. It doesn't use the "learn by example" model, rather it uses a "configuration file" scheme - which seems a lot simpler to me. Each user might customize their own config file to produce whatever whacko style they liked. TOOLPACK is public domain software developed at the U of Colorado, Argonne National Labs, JPL, Bell Labs, Purdue, Numerical Algorithms Group, and other sites. For distribution, contact Integrated Systems Technologies at (312)869- 7820 or the Numerical Algorithms Group (usa 312-971-2337 or uk oxford (0865)511245 international +44865 511245). also see refs IEEE Transactions on Software Engineering SE-9 #6 Nov 83 P 673. L.J. Osterweil ACM Transactions on Mathematical Software vol 12 p324-353 Cowell,Thompson Unix Shell scripts to invoke a set of Toolpack/1 tools Technical Memorandum ANL/MCS-TM-77 ANL,86. George Seibel, UCSF seibel@cgl.ucsf.edu