首页 | 本学科首页   官方微博 | 高级检索  
     


Generation of abstract programming interfaces from syntax definitions
Authors:H. A. de Jong   P. A. Olivier
Affiliation:Department of Software Engineering, CWI, Kruislaan 413, 1098 SJ, Amsterdam, The Netherlands
Abstract:
This paper describes how an Abstract Programming Interface () and its implementation can be generated from the syntax definition of a data type. In particular we describe how a grammar (in ) 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 + 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.
Keywords:Author Keywords: API   +    Aterms   Data binding   Code generation   Parse tree manipulation
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号