🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #377

Prettyprinter needed

#377
From: Chrysanne DiMarco
Date: Fri, 06 Oct 1989 21:00
21 lines
1058 bytes
I need a prettyprinter to do what I am sure is a standard operation,
but I'm not sure how to do it myself. I want to be able to display
a functor structure like: 
parse(adverbial_clause, time_clause, adverb(when), subject(the, happy, peasant),
      predicate(verb(sang))) in the following prettyprinted format:

parse
  adverbial_clause
  time_clause
  adverb
    when
  subject
    the
    happy
    peasant
  predicate
    verb
      sang

The actual structures get extremely nested. If anyone has such a
prettyprinter or can point me to one, I would appreciate the help.
Technical Details
Message-ID: <89Oct6.165934edt.2551@neat.cs.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.cs.toronto.edu!cdi

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.cs.toronto.edu!cdi
Newsgroups: comp.lang.prolog
From: Chrysanne@cs.toronto.edu, DiMarco@cs.toronto.edu
Subject: Prettyprinter needed
Message-ID: <89Oct6.165934edt.2551@neat.cs.toronto.edu>
Keywords: prettyprinter
Sender: Chrysanne DiMarco <cdi@ai.toronto.edu>
Reply-To: cdi@ai.toronto.edu
Organization: Department of Computer Science, University of Toronto
Distribution: na
Date: 6 Oct 89 21:00:05 GMT