The automatic generation of formatters for (programming) languages within the Asf+Sdf Meta-Environment is a research topic that is concerned with the construction of language specific formatters (or pretty-printers) given a language definition in Sdf. In this paper, we give an overview of pretty-printers that have been developed within this project and observe that these pretty-printers are either language dependent or non-customizable. Language independence and customizability are inevitable properties of pretty-printers however, when faced with the problem of formatting many different, evolving languages. Therefore, we introduce in this paper a generic framework for pretty-printing and describe an instantiation of the framework that forms a language independent and customizable pretty-printer.

, , , , , , , ,
Software Engineering [SEN]
Software Analysis and Transformation

van den Brand, M., & de Jonge, M. (1999). Pretty-printing within the ASF+SDF meta-environment : a generic approach. Software Engineering [SEN]. CWI.