arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1602.06568cs.PL
收藏

同构生成元编程建模

Modelling homogeneous generative meta-programming

Martin Berger, Laurence Tratt, Christian Urban

摘要:

同构生成元编程(HGMP)允许在编译时或运行时生成程序片段。我们提出了第一个基础演算,它可以模拟强大的HGMP语言,如模板Haskell。演算的设计使得我们可以逐步增强它,使其具有建模真实语言的许多高级功能所需的功能。作为我们的方法的灵活性的演示,我们还提供了一个简单的类型系统的演算。

英文摘要:

Homogeneous generative meta-programming (HGMP) enables the generation of program fragments at compile-time or run-time. We present the first foundational calculus which can model powerful HGMP languages such as Template Haskell. The calculus is designed such that we can gradually enhance it with the features needed to model many of the advanced features of real languages. As a demonstration of the flexibility of our approach, we also provide a simple type system for the calculus.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑