Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dartvax.UUCP Path: utzoo!linus!decvax!dartvax!tdxsys From: tdxsys@dartvax.UUCP (TDX sys Mark Mullen) Newsgroups: net.lang.lisp,net.ai Subject: Info needed on LISP prettyprinter algorithm Message-ID: <2206@dartvax.UUCP> Date: Sun, 15-Jul-84 20:19:35 EDT Article-I.D.: dartvax.2206 Posted: Sun Jul 15 20:19:35 1984 Date-Received: Mon, 16-Jul-84 05:35:49 EDT Organization: Dartmouth College Lines: 11 I am currently trying to write a LISP interpreter under SYS/III. Since my experiance with LISP itself is limited, I am very puzzled about the precise algorithm for prettyprinting. I have tried various lookahead modications to the simple sexp printer I have, but my algorithms produce output that indicates they look to far ahead. In addition, my newline function currently indents n tab positions, where n = (int) leftparen - (int) rightparen ????? A: What is the algorithm used to determine line breaks? B: Through what means do I determine the initial indent on a newline ?