Generation of abstract programming interfaces from syntax definitions

Citations of this article
Mendeley users who have this article in their library.


This paper describes how an Abstract Programming Interface (API) and its implementation can be generated from the syntax definition of a data type. In particular we describe how a grammar (in SDF) can be used to generate a library of access functions that manipulate the parse trees of terms over this syntax. Application of this technique in the ASF+SDF Meta-Environment has resulted in the elimination of 47% of the handwritten code, thus greatly improving both maintainability of the tools and their flexibility with respect to changes in the parse tree format. Although the focus is on ATerms, the issues discussed and the techniques described are more generic and are relevant in related areas such as XML data-binding. © 2003 Elsevier Inc. All rights reserved.




De Jong, H. A., & Olivier, P. A. (2004). Generation of abstract programming interfaces from syntax definitions. Journal of Logic and Algebraic Programming, 59(1–2), 35–61.

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free