从C程序到XML文本转换模型的设计与实现  

Design and Implementation of the Transformation Model from C Program to XML Text

在线阅读下载全文

作  者:钟美[1] 刘东升[1] 

机构地区:[1]内蒙古师范大学计算机与信息工程学院,内蒙古呼和浩特010022

出  处:《内蒙古师范大学学报(自然科学汉文版)》2011年第3期320-324,共5页Journal of Inner Mongolia Normal University(Natural Science Edition)

基  金:国家自然科学基金资助项目(60940027);内蒙古师范大学研究生科研创新基金(CXJJS10052)

摘  要:针对C程序提出一种生成标记字符串的方法,即用XML文本表示C程序.首先格式化源程序,从C语言全集中挑选出部分能代表程序结构的关键结构,并用正则表达式进行识别,然后将C程序中容易发生抄袭的结构信息存储到XML文本中,最后对实验系统进行了测试.测试结果表明,该方法能快速找到程序中发生抄袭的代码,从而提高相似度比较的速度和准确性.A method of generating token string for C program was presented,that is said that using XML text represent C program.Firstly,formatting the source program;secondly,picking out the key structure that can represent the procedural structure from C language,the key structure was identified by corresponding regular expressions;thirdly,the structure information in C program,which is prone to plagiarism,is stored in XML text;finally,the experiment system is tested,and the result proved that the method quick searches the code which is plagiarized and the speed and accuracy be improved.

关 键 词:C程序 转换 XML文本 相似度 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象