printing recursive objects?

Paul Haahr <haahr@mv.us.adobe.com>
Mon, 3 May 1993 17:10:43 GMT

          From comp.compilers

Related articles
printing recursive objects? haahr@mv.us.adobe.com (Paul Haahr) (1993-05-03)
Re: printing recursive objects? johnl@cs.indiana.edu (John Lacey) (1993-05-04)
printing recursive objects? ontos!tonyk@uu.psi.com (Tony Kanawati) (1993-05-04)
printing recursive objects? davis@ilog.ilog.fr (1993-05-05)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Paul Haahr <haahr@mv.us.adobe.com>
Keywords: question, Lisp
Organization: Compilers Central
Date: Mon, 3 May 1993 17:10:43 GMT

Given an arbitrary recursive structure, say a lisp sexpr, how do you print
it in a form that can be read back to create the same structure?


For example, given the scheme expression


(let ((x (cons 'a nil))) (set-cdr! x x) x)


how do I print some scheme expression that, when interpreted, creates the
same structure, rather than just a lot of ``a''s?


I know that there must be some literature on this subject, but I don't
know where it is. Any pointers would be appreciated.


paul haahr adobe systems incorporated
haahr@adobe.com ...!decwrl!adobe!haahr +1 415 962 6056
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.