首页> 外文期刊>Science of Computer Programming >An expressive stateful aspect language
【24h】

An expressive stateful aspect language

机译:富有表现力的有状态方面的语言

获取原文
获取原文并翻译 | 示例
           

摘要

Stateful aspects can react to the trace of a program execution; they can support modular implementations of several crosscutting concerns like error detection, security, event handling, and debugging. However, most proposed stateful aspect languages have specifically been tailored to address a particular concern. Indeed, most of these languages differ in their pattern languages and semantics. As a consequence, developers need to tweak aspect definitions in contortive ways or create new specialized stateful aspect languages altogether if their specific needs are not supported. In this paper, we describe ESA, an expressive stateful aspect language, in which the pattern language is Turing-complete and patterns themselves are reusable, composable first-class values. In addition, the core semantic elements of every aspect in ESA are open to customization. We describe ESA in a typed functional language. We use this description to develop a concrete and practical implementation of ESA for JavaScript. With this implementation, we illustrate the expressiveness of ESA in action with examples of diverse scenarios and expressing semantics of existing stateful aspect languages.
机译:有状态的方面可以对程序执行的痕迹做出反应;它们可以支持多种横切关注点的模块化实现,例如错误检测,安全性,事件处理和调试。但是,大多数拟议的有状态方面的语言都经过专门调整以解决特定问题。确实,这些语言中的大多数在模式语言和语义上都不同。因此,开发人员需要以扭曲的方式调整方面定义,或者如果不支持他们的特定需求,则必须完全创建新的专用状态状态方面的语言。在本文中,我们描述了ESA,一种有状态的表达方面语言,其中模式语言是图灵完备的,模式本身是可重用的,可组合的一流值。此外,ESA中每个方面的核心语义元素都可以自定义。我们用一种类型化的功能语言描述ESA。我们使用此描述为JavaScript开发ESA的具体而实际的实现。通过此实现,我们以各种场景的示例以及现有状态状态语言的语义说明了ESA在行动中的表现力。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号