ACM Transactions on Programming Languages and Systems · 1980 · 68 citations · 6 references
ComputingComputer EngineeringComputer ScienceAlgorithmsParallel AlgorithmsParallel ComputingAlgorithm AnalysisComputational ComplexityData ParallelismParallel Input/outputStream ProcessingStreaming AlgorithmsInput/output ParallelismParallel ScanStream ComputationStreaming Computation
An algorithm for prettyprinting is given. For an input stream of length n and an output device with linewidth m , the algorithm requires time O ( n ) and space O ( m ). The algorithm is described in terms of two parallel processes: the first scans the input stream to determine the space required to print logical blocks of tokens; the second uses this information to decide where to break lines of text; the two processes communicate by means of a buffer of size O ( m ). The algorithm does not wait for the entire stream to be input, but begins printing as soon as it has received a full line of input. The algorithm is easily implemented.
6
Charles M. Geschke, James H. Morris, Edwin H. Satterthwaite · Communications of the ACM · 1977 · 162 citations · Full text
An automatic formatting program for PASCAL
Jon Hueras, Henry Ledgard · ACM SIGPLAN Notices · 1977 · 35 citations · Full text
On the formatting of Pascal programs
James L. Peterson · ACM SIGPLAN Notices · 1977 · 24 citations · Full text
SOAP--A program which documents and edits ALGOL 60 programs
R. S. Scowen · The Computer Journal · 1971 · 16 citations · Full text
Kenneth Conrow, Ronald G. Smith · Communications of the ACM · 1970 · 12 citations · Full text