Programmatic Building of Models Just for Pretty Printing

Tero Hasu
Helsinki Institute for Information Technology
PO Box 9800, FI–02015 TKK, Finland

Abstract

In-memory object models of programs are commonly built by tools to facilitate program analysis and manipulation. We claim that for some applications it makes sense to construct such models for the sole purpose of pretty printing, and explain the reasoning behind our claim in this paper. We also describe a tool we have created to support this approach to pretty printing; the tool derives, from an annotated grammar, both an object-oriented API for model building, as well as corresponding routines for pretty-printing built models.

BibTeX

@inproceedings{qretty,
author = "Tero Hasu",
title = "Programmatic Building of Models Just for Pretty Printing",
booktitle = {Proceedings of OOPSLA Workshop on Domain-Specific Modeling (DSM)},
address = {Portland, Oregon, USA},
month = Oct,
year = 2006
}
    

Last modified: Tue, 11 Dec 2012 22:46:01 +0000