Formatted syntaxes and modula‐2

The formatted syntax notation has been developed for the specification of formatted programming languages. This paper describes how a formatted syntax may be constructed for the purpose of prettyprinting an existing free‐format language. Those aspects of the system of particular relevance to free‐format languages are emphasized and their use explained. Also, a number of deficiencies in the defining metasyntax and formatting symbol repertoire are discussed. Practical enhancements and further areas of research are suggested. The programming language Modula‐2 is used for illustration, and a formatted syntax for it is given.