【24h】

Source code annotations as formal languages

机译:源代码注释作为正式语言

获取原文

摘要

Attribute-oriented programming (source code annotations) is a program level marking technique that enables enrichment of program elements with custom metadata. In this paper we hypothesize that there is a correspondence between source code annotations and conventional formal languages in general. We analyze our observations about source code annotations from three aspects of language description: concrete syntax, abstract syntax, and semantics. The discussion provides evidence of the hypothesized correspondence and we use it as a basis for our definition of an annotation-based language (abbreviated: @L). However, the analysis also shows that compared to conventional formal languages, source code annotations have some specificities mainly connected to their binding to host program elements. The presented analysis contributes to the field of attribute-oriented programming by discussing the relationship between annotations and conventional formal languages, and by surveying relational idioms in annotations' usage that can be inspirational for annotations' authors.
机译:面向属性的编程(源代码注释)是一种程序级标记技术,可实现具有自定义元数据的程序元素。在本文中,我们假设源代码注释与传统正式语言之间存在对应关系。我们分析了我们关于语言描述的三个方面的关于源代码注释的观察:具体语法,抽象语法和语义。讨论提供了假设通信的证据,我们将其作为我们对基于注释的语言的定义(缩写:@L)的基础。然而,分析还表明,与传统的正式语言相比,源代码注释具有一些主要与主机程序元素的绑定相关的特异性。本分析通过讨论注释与传统正式语言之间的关系,通过讨论令人振奋的注释作者,通过讨论注释与传统正式语言之间的关系,为面向性的编程领域有助于。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号