[net.ai] Info needed on LISP prettyprinter algorithm

tdxsys@dartvax.UUCP (TDX sys Mark Mullen) (07/16/84)

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 ?