首页> 外文会议>Proceedings of the Seventh International Conference on Information Technology: New Generations >An Extended Line-Based Approach to Detect Code Clones Using Syntactic and Lexical Information
【24h】

An Extended Line-Based Approach to Detect Code Clones Using Syntactic and Lexical Information

机译:一种基于行的扩展方法,使用句法和词汇信息检测代码克隆

获取原文

摘要

This paper proposes a new line-based approach for the detection of code clones using syntactic and lexical information. A customized compiler writes a source code representation that contains syntactic and lexical information. A new clone detection tool called LePalex reads the source code representation, and converts it to three types of code: first normal form, second normal form, and third normal form. The first normal form is used to detect the exact match of code clones. The second normal form is used to detect the syntactic match of code clones. The third normal form is used to check for syntactically correct segments of code clones. This paper demonstrates the advantage of this approach in achieving programming language independence using syntactic and lexical information.
机译:本文提出了一种新的基于行的方法,用于使用句法和词法信息检测代码克隆。定制的编译器编写包含语法和词汇信息的源代码表示形式。一种名为LePalex的新克隆检测工具读取源代码表示形式,并将其转换为三种类型的代码:第一种规范形式,第二种规范形式和第三种规范形式。第一个范式用于检测代码克隆的精确匹配。第二范式用于检测代码克隆的语法匹配。第三种范式用于检查语法正确的代码克隆段。本文演示了这种方法在使用句法和词汇信息实现编程语言独立性方面的优势。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号