🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #3794

Infix-to-prefix notation (Or: Why doesn't C-Prolog's "display" work?)

#3794
From: Rajiv Sarathy
Date: Wed, 23 Nov 1988 00:16
29 lines
1433 bytes
According to Clocksin & Mellish, AND according to the C-Prolog user's manual,
"display(X) is supposed to display X "on the terminal in standard parenthe-
sized prefix notation".

The example on page 99 of the edition I have of C & M says that

?- display(a+b*c*c).

	should return

+(a,*(*(b,c),c))
yes

	However, the implementation of C-Prolog I'm using (on a SUN 3/280, if
it matters) merely returns X.

Does someone have the definition of the "display" predicate?
Thanks a lot in advance,

--Raj

-- 

 ______________________________________________________________________________
|  Disclaimer:  I'm just an undergrad.                                         |
|  All views and opinions are therefore my own.                                |
|                                                                              |
|  Rajiv Partha Sarathy                   sarathy@gpu.utcs.utoronto.ca         |
|______________________________________________________________________________|
Technical Details
Message-ID: <1988Nov22.191600.26206@gpu.utcs.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!sarathy

Show Full Headers
Complete Article Headers
Checksum: 44162
Path: arc1-ca.pugleaf.net!utzoo!utgpu!sarathy
From: sarathy@gpu.utcs.toronto.edu (Rajiv Sarathy)
Date: Tue, 22-Nov-88 19:16:00 EST
Message-ID: <1988Nov22.191600.26206@gpu.utcs.toronto.edu>
Organization: University of Toronto Computing Services
Newsgroups: comp.lang.prolog
Subject: Infix-to-prefix notation (Or: Why doesn't C-Prolog's "display" work?)
Reply-To: sarathy@gpu.utcs.utoronto.ca (Rajiv Sarathy)