...
首页> 外文期刊>Science of Computer Programming >Dynamic creation of source code models for the extraction of code metrics data through grammar querying
【24h】

Dynamic creation of source code models for the extraction of code metrics data through grammar querying

机译:通过语法查询动态创建源代码模型的源代码模型,用于提取代码指标数据

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

获取外文期刊封面封底 >>

       

摘要

Source code metrics extraction is a complex task that has to be done automatically given the current size of software. They are extracted using software metric tools and more generic extraction mechanisms. These mechanisms usually work by querying a source code representation model. These models are static, and the information that can be obtained from them is limited. In this work an extraction methodology is presented in which the model is created every time certain information is needed. This is accomplished by querying the language context-free grammar, and from the information obtained by the query, a dynamic model is created. Current extraction mechanisms work by querying a model, while the proposed methodology queries the grammar directly, thus the model is created afterwards from the query result, and contains all the needed information. A metrics tool is created based on the proposed methodology, and in order to prove the correct functioning of extracting the desired information from the source code, not as already predefined as in current tools, several metrics are extracted as defined by four existing metrics tools. Querying the language grammar allows access to all available data in the source code, regardless of the programming language and paradigm.
机译:源代码指标提取是一个复杂的任务,必须自动完成软件的当前大小。它们使用软件度量工具和更多通用提取机制提取。这些机制通常通过查询源代码表示模型来工作。这些模型是静态的,并且可以从它们获得的信息有限。在这项工作中,提出了提取方法,其中每次需要某些信息时都会创建模型。这是通过查询语言无背景语法来实现的,并且从查询获得的信息,创建动态模型。当前提取机制通过查询模型来解决,而提出的方法直接查询语法,从而从查询结果之后创建模型,并包含所有所需的信息。基于所提出的方法创建度量工具,并且为了证明从源代码中提取所需信息的正确功能,不像当前工具中那样预定义,则按四个现有度量工具定义了几个度量。查询语言语法允许访问源代码中的所有可用数据,而不管编程语言和范例如何。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号