DocumentCode
3357500
Title
A language independent framework for context-sensitive formatting
Author
van den Brand, M.G.J. ; Kooiker, A.T. ; Vinju, J.J. ; Veerman, N.P.
Author_Institution
Centrum voor Wiskunde en Informatica, Amsterdam
fYear
2006
fDate
22-24 March 2006
Lastpage
112
Abstract
Automated formatting is an important technique for the software maintainer. It is either applied separately to improve the readability of source code, or as part of a source code transformation tool chain. In this paper we report on the application of generic tools for constructing formatters. In an industrial setting, automated formatters need to be tailored to the requirements of the customer. The (legacy) programming language or dialect and the corporate formatting conventions are specific and non-negotiable. Can generic formatting tools deal with such unexpected requirements? Driven by an industrial case of nearly 80 thousand lines of COBOL code, several limitations in existing formatting technology have been addressed. We improved its flexibility by replacing a generative phase by a generic tool, and we added a little expressiveness to the formatting back end. Most importantly, we employed a multi-stage formatting framework that can cope with any kind of formatting convention using more computational power
Keywords
COBOL; software maintenance; COBOL code; context-sensitive formatting; corporate formatting conventions; formatters construction; generic formatting tools; language independent framework; legacy programming language; source code readability; source code transformation tool chain; Application software; Code standards; Computer industry; Computer languages; Computer science; Domain specific languages; Productivity; Programming profession; Software maintenance;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Maintenance and Reengineering, 2006. CSMR 2006. Proceedings of the 10th European Conference on
Conference_Location
Bari
ISSN
1534-5351
Print_ISBN
0-7695-2536-9
Type
conf
DOI
10.1109/CSMR.2006.4
Filename
1602362
Link To Document