A language independent framework for context-sensitive formatting

被引:0
作者
van den Brand, M. G. J. [1 ]
Kooiker, A. T.
Vinju, J. J.
Veerman, N. P. [2 ]
机构
[1] Eindhoven Univ Technol, Software Construct, Den Dolech 2, NL-5612 AZ Eindhoven, Netherlands
[2] Vrije Univ Amsterdam, Dept Comp Sci, NL-1081 HV Amsterdam, Netherlands
来源
10TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING, PROCEEDINGS | 2006年
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:101 / +
页数:2
相关论文
共 24 条
[1]  
ATTALI I, 2001, LECT NOTES COMPUTER, V2027, P355
[2]   DMS®:: Program transformations for practical scalable software evolution [J].
Baxter, ID ;
Pidgeon, C ;
Mehlich, M .
ICSE 2004: 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2004, :625-634
[3]  
CORDY JR, 2004, ELECT NOTES THEORETI, P1
[4]  
CORDY JR, 2005, TXL PROGRAMMING LANG
[5]  
COUTAZ J, 1984, CMUCS84167
[6]   Pretty-printing for software reengineering [J].
de Jonge, M .
INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE, PROCEEDINGS, 2002, :550-559
[7]  
de Jonge M, 2000, P 2 INT S CONSTR SOF INT S CONSTR SOFTW E, V5, P68
[8]  
Klint P., 1993, ACM Transactions on Software Engineering and Methodology, V2, P176, DOI 10.1145/151257.151260
[9]  
Kort J., 2002, ELECT NOTES THEORETI, V65
[10]   Semi-automatic grammar recovery [J].
Lämmel, R ;
Verhoef, C .
SOFTWARE-PRACTICE & EXPERIENCE, 2001, 31 (15) :1395-1438