首页> 外文期刊>Science of Computer Programming >Towards naturalistic programming: Mapping language-independent requirements to constrained language specifications
【24h】

Towards naturalistic programming: Mapping language-independent requirements to constrained language specifications

机译:走向自然编程:将与语言无关的要求映射到受约束的语言规范

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

摘要

This research paper presents a new approach that constitutes a first step towards programming using language-independent requirements. To leverage the needed programming effort, our approach takes requirements in the form of language-independent use case scenarios. Then, it generates the inputs of a code generator which, in turn, produces the corresponding code. To provide for the language-independence, our approach uses an enriched version of the semantic model, as a means to represent similar ideas possibly in different ways and in different natural languages. The enrichment consists of a set of patterns that it implements as XML code representing the information embedded in the use case scenarios. This intermediate representation can be processed to derive the inputs required by any code generator to produce code in a particular programming language. This paper illustrates the approach and its tool support for use case scenarios written in English and French, and semantic model patterns implemented as XML code that can be processed by the ReDSeeDS code generator. In addition, it presents the results of an experimental evaluation of the approach on use case scenarios (written in English and in French) belonging to five different systems. This evaluation quantitatively shows the ability of our approach: to extract ReDSeeDS inputs conforming to the expert's inputs with a high precision; to generate XML code elements conforming to the input with an encouraging performance as evaluated by the participating students (an F-measure ranging between 87.43% and 92.31%); and to generate Java code judged efficient by the participating programmers (an F-measure ranging between 66.4% and 93.43%). (C) 2018 Elsevier B.V. All rights reserved.
机译:本研究论文提出了一种新方法,构成了使用独立于语言的要求进行编程的第一步。为了利用所需的编程工作,我们的方法采用了与语言无关的用例场景形式的要求。然后,它生成代码生成器的输入,后者又生成相应的代码。为了提供语言独立性,我们的方法使用了语义模型的增强版本,作为可能以不同的方式和不同的自然语言表示相似思想的一种方式。扩充包含一组模式,这些模式以XML代码的形式实现,这些XML代码表示用例场景中嵌入的信息。可以对该中间表示进行处理,以导出任何代码生成器所需的输入,以生成特定编程语言的代码。本文说明了用英语和法语编写的用例场景的方法及其工具支持,以及作为XML代码实现的语义模型模式,可以由ReDSeeDS代码生成器进行处理。此外,它还提供了对属于五个不同系统的用例场景(以英语和法语编写)的方法进行实验评估的结果。该评估定量地显示了我们的方法的能力:高精度地提取符合专家输入的ReDSeeDS输入;生成与输入相符的XML代码元素,并表现出令人鼓舞的表现,参与学生对此进行了评估(F测度介于87.43%和92.31%之间);并生成参与程序员认为有效的Java代码(F测度介于66.4%和93.43%之间)。 (C)2018 Elsevier B.V.保留所有权利。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号