Parameterized Code Generation from Template Semantics

msra(2008)

引用 23|浏览4
暂无评分
摘要
Abstract We have developed a tool that can create a Java code generator for a behavioural modelling notation given only a description of the notation’s semantics as a set of parameters. This description is based on template semantics, which has previously been used to describe a wide variety of notations. As a result, we have a technique for generating Java code for models written in any notation describable in template semantics. Since template semantics allows for models containing nondeterminism, we introduce mechanisms for eliminating this nondeterminism when generating code. We describe Java implementations of several template-semantics composition operators that have no natural Java representations and give some techniques for optimizing the generated code without sacriflcing correctness. The e‐ciency of our generated code is comparable to that of commercial notation-speciflc code generators. iii Acknowledgments
更多
查看译文
关键词
composition operator,code generation
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要