Software Practice and Experience · 1981 · 25 citations · 5 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSyntaxInterface DesignProgramming Language DesignProgramming Language ImplementationSoftware ConstructionSoftware DesignSyntax-semantics InterfaceCompiler DesignDesign LanguageLanguage DesignReadabilitySyntax DesignText Formatting
Abstract This paper presents a systematic approach to formatted language design that incorporates formatting within the syntax of programming languages. The approach includes: a metasyntax to ensure that program text is foldable, not only to avoid right margin overflow but also to preclude constructs which are visually confusing or ambiguous; a set of guidelines for language designers to enhance readability within the constraints of the metasyntax; and a folding algorithm which selectively folds a program text. The resulting automatic formatting is consistent with current practice in program and text layout. The effect of this approach is to put program format decisions in the domain of the language's designer, rather than its several implementors or numerous users, which implies uniformly formatted programs of improved readability and therefore usability.
5
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
A. M. Addyman, Rose M. Brewer, D. G. Burnett‐Hall et al. · Software Practice and Experience · 1979 · 16 citations
Prettyprinting PASCAL programs
Patricia R. Mohilner · ACM SIGPLAN Notices · 1978 · 10 citations