【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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号