【24h】

Integrating code generators into the C# language

机译:将代码生成器集成到C#语言中

获取原文

摘要

In this paper, we show how the concept of code generators can be safely implemented into an object oriented language. Modern languages like Java and C# begin to offer advanced features for generative programming, like generic types. Our own extension of C# generalizes the concept of generic types by combining it with reflection. With reflection, many code generation tasks can be accomplished for which generic types are insufficient. By balancing the availability of code generation features with their safety, we are able to detect potential generation errors statically.
机译:在本文中,我们展示了如何安全地实现代码生成器的概念,以面向对象的语言。像Java和C#这样的现代语言开始为生成编程提供高级功能,如通用类型。我们自己的C#延伸了C#概括了通用类型的概念。通过反射,可以实现许多代码生成任务,通用类型不足。通过平衡其安全性的代码生成功能,我们能够静态地检测潜在的产生错误。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号