Indenting for the compiler
Author:
Open Access
- 1 May 1980
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 15 (5) , 41-48
Abstract
A simple indentation rule, indent statements from the control statement they belong to, is sufficient to express a program's block structure without the use of compound statements or closing keywords. This is proven using a PASCAL-like language (using indentation instead of BEGIN-END blocks). Using indentation alone means a programmer need not give two independent specifications of a program's block structure, thus reducing effort and eliminating a potential source of errors.Keywords
This publication has 9 references indexed in Scilit:
- Prettyprinting structured programs with connector linesACM SIGPLAN Notices, 1979
- Some practical experiences formatting Pascal programsACM SIGPLAN Notices, 1979
- Two-dimensional grammars and structured programming languagesACM SIGPLAN Notices, 1979
- Structured formatting of Pascal programsACM SIGPLAN Notices, 1978
- A technique for making structured programs more readableACM SIGPLAN Notices, 1978
- "Flowblocks"ACM SIGPLAN Notices, 1978
- On the formatting of Pascal programsACM SIGPLAN Notices, 1977
- An automatic formatting program for PASCALACM SIGPLAN Notices, 1977
- NEATER2Communications of the ACM, 1970