We present an architecture for context-sensitive formatting, and demonstrate it in a formatting case with an industrial Cobol system. We claim that our architecture can handle all kinds of unexpected formatting conventions in any programming language. This architecture needs no default formatter to be generated and allows arbitrary computational power while mapping language constructs to formatting instructions.
Citation:
M. G. J. van den Brand, A. T. Kooiker, J. J. Vinju, N. P. Veerman, "An Architecture for Context-Sensitive Formatting," icsm, pp.631-634, 21st IEEE International Conference on Software Maintenance (ICSM'05), 2005