Premium
Formatted programming languages
Author(s) -
Rose G. A.,
Welsh J.
Publication year - 1981
Publication title -
software: practice and experience
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.437
H-Index - 70
eISSN - 1097-024X
pISSN - 0038-0644
DOI - 10.1002/spe.4380110702
Subject(s) - disk formatting , readability , computer science , programming language , usability , syntax , set (abstract data type) , domain (mathematical analysis) , natural language processing , software engineering , artificial intelligence , human–computer interaction , mathematical analysis , mathematics , operating system
This paper presents a systematic approach to formatted language design that incorporates formatting within the syntax of programming languages. The approach includes: 1 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; 2 a set of guidelines for language designers to enhance readability within the constraints of the metasyntax; and 3 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.