printing recursive objects?

Paul Haahr <>
Mon, 3 May 1993 17:10:43 GMT

          From comp.compilers

Related articles
printing recursive objects? (Paul Haahr) (1993-05-03)
Re: printing recursive objects? (John Lacey) (1993-05-04)
printing recursive objects? ontos! (Tony Kanawati) (1993-05-04)
printing recursive objects? (1993-05-05)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Paul Haahr <>
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 ...!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.